title: How can I fill an html table data cell with a color?
body: <p>I am creating a timeline with an html table. I want to colorize the data cells in a row corresponding to the lifespan of the person represented in a row. That is to say, if the person lived from 1835 to 1910, all of those columns would be colorized. Those prior to 1835, and those after 1910 would not.</p>
  
  <p>I currently simply have a placeholder tilde as the contents of the "year" cells:</p>
  
  <pre><code>&lt;tr&gt;
        &lt;th scope="row"&gt;John Marshall Clemens&lt;/th&gt;
        &lt;td&gt;Father&lt;/td&gt;
        &lt;td&gt;~&lt;/td&gt;
        &lt;td&gt;~&lt;/td&gt;
        &lt;td&gt;~&lt;/td&gt;
        &lt;td&gt;~&lt;/td&gt;
  </code></pre>
  
  <p>The ultimate effect should look something like this (assuming John Marshall was alive at least from 1794 through 1797:</p>
  
  <p><a href="https://i.stack.imgur.com/4dOzm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4dOzm.png" alt="enter image description here"></a></p>