Td Font-weight: Bold; : Td « Tags « HTML / CSS

td font-weight: bold; : td « Tags « HTML / CSS

td font-weight: bold;

<html> <head><title>Tables</title> <style type="text/css"> td { text-align: center; font-weight: bold; } table { background-color: blue; color: white; } caption { background-color: red; color: yellow; font-weight: bold; } th { background-color: gold; color: navy } td.center { background-color: white; color: black; } </style></head> <body> <table> <caption>How to Use Tables</caption> <tr> <th>Col 1</th> <th>Col 2</th> <th>Col 3</th> </tr> <tr> <td>X</td> <td>X</td> <td>X</td> </tr> <tr> <td>X</td> <td class="center">X</td> <td>X</td> </tr> <tr> <td>X</td> <td>X</td> <td>X</td> </tr> </table> </body> </html>

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
4.tr 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
13.table cell hover with class
14.td:empty
15.table cell overflow hidden
16.Selecting cells in body
17.Set style for an anchor in table cell
18.Set style for image in a table cell
19.Table cell with different class
20.Table cell with line height setting
21.Add different cell space
22.empty-cells: hide
23.td width:6em;
24.td overflow: hidden;
25.td font-size: 130%;
26.td color: #303030;
27.td font-size: 0.9em;
28.td line-height:1.5; line-height:1.5em; line-height:75%;}
29.Table with column span 2
30.Table with number column
31.css is for the table layout
32.rowspans and colspans merge the specified number of cells vertically or horizontally
33.Selecting cells in column
34.Column widths
35.Hiding column
36.col width: 200px;
37.col color: crimson;
38.Column highlight

Từ khóa » Html Td Style Bold