HTML (36)
Table Attribute
Table Attribute
Table Header (th) attributes
- Bgcolor
- align
Background Color = This will change the color of background of Header.
Tag: bgcolor
Example ↓↓↓↓↓
<html>
<head>
<title>My Page</title>
</head>
<body>
<table border="4">
<th bgcolor="yellow">Sample</th>
<tr>
<td>Sample</td>
</tr>
<tr>
<td>Sample</td>
</tr>
<tr>
<td>Sample</td>
</tr>
</table>
</body>
</html>
Align = This tag is used to align (Left,Right,Center) Table Header
Tags
- left = <th align="left">Sample text </th>
- right = <th align="right">Sample text </th>
- center = <th align="center">Sample text </th>
0 Comments