col color: crimson; : td « Tags « HTML / CSS

col color: crimson;


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns='' xml:lang='en'>
<style type='text/css'>
body {
    font-family: sans-serif;
table {
    border: 1px solid rgb(200, 200, 200);
    caption-side: bottom;
    width: 100%;
th {
    background: lightyellow;
th, td {
    border: 1px solid rgb(200, 200, 200);
    padding: 5px;
col#album {
    width: 200px;
    background: rgb(244, 244, 244);
    color: crimson;
col#released {
    width: 1%;
    background: rgb(244, 244, 244);

                Table: My favorite records.
                <col id='album' />
                <col id='artist' />
                <col id='released' />
                    <th> album            </th>
                    <th> artist           </th>
                    <th> released         </th>
                    <td> D      </td>
                    <td> C      </td>
                    <td> 1965             </td>
                    <td> A  </td>
                    <td> B     </td>
                    <td> 1967             </td>
                    <td> N </td>
                    <td> M                  </td>
                    <td> 1995                                   </td>


Related examples in the same category

1.'td' Example
2.'choff' is a decimal number specifying an offset from the beginning of the table cell
3.'headers' specifies a list of 'th' elements and td
5.Line break in a table cell
6.use table cell as block
7.Hide empty cell
8.Empty table header cell
9.Table cell hover
10.Right-offset Shrinkwrapped Table
11.Table with Spanned Rows and Cells
12.Boxed Table and Cells font-weight: bold;
14.table cell hover with class
16.table cell overflow hidden
17.Selecting cells in body
18.Set style for an anchor in table cell
19.Set style for image in a table cell
20.Table cell with different class
21.Table cell with line height setting
22.Add different cell space
23.empty-cells: hide width:6em; overflow: hidden; font-size: 130%; color: #303030; font-size: 0.9em; line-height:1.5; line-height:1.5em; line-height:75%;}
30.Table with column span 2
31.Table with number column
32.css is for the table layout
33.rowspans and colspans merge the specified number of cells vertically or horizontally
34.Selecting cells in column
35.Column widths
36.Hiding column
37.col width: 200px;
38.Column highlight