Created a table in HTML how to manage the background and text of the entire table is clear, each individual cell is clear, but how to manage the background and text of a row or column without registering each cell?

    2 answers 2

    Similarly. The same attributes are for the <tr> tag only. And the problem with the columns is the <col> tag, but it is poorly supported by browsers. In general, such things need to be done on CSS. . Here, by the way, is an example

      Here's another example http://www.w3.org/Style/Examples/007/evenodd.html

      HTML

      <table> <col><col><col><col><col><col><col><col><col><col> <tr><th>Month<th>1994<th>1995<th>1996... 

      CSS

       col:first-child {background: #FF0} col:nth-child(2n+3) {background: #CCC}