Why can't we set the color in the col tag?

I just came across a use case where it would be useful to create a tag col: enter image description here

In this particular case, I wanted to set the column colorcolumn "Mail Name", but it turned out that it does not work or is not allowed. But it’s background-colorallowed, although it makes me wonder why colornot.

I checked the specification ( http://www.w3.org/TR/html5/tabular-data.html#the-col-element ), but I did not find any useful information. I know how to do the same effect only with CSS, I'm just wondering if anyone knows why this is happening?

Example: http://jsfiddle.net/nunoarruda/d8d7rans/

+4
4
+6

CSS3...

table tr td:nth-child(2){
    color:#cc0000;
}

td tr

, -Ted

+1

col "span", ( ).

- TD .

0

You want to set the color in the container above where you have the style at the moment   

0
source

All Articles