HTML Table Heading

Table Heading:

• It is used by using <th> tag.
• Normally you will put your top row as table heading.
Example:

<!DOCTYPE html>
<html>
<head>
<title>HTML Table</title>
</head>
<body>
<table border=”1”>
<tr>
<th>Name</th>
<th>Salary</th>
</tr>
<tr>
<td>Raju</td>
<td>5000</td>
</tr>
<tr>
<td>Masuf</td>
<td>4000</td>
</tr>
</table>
</body>
</html> 
OUTPUT:

Comments

Popular posts from this blog

Set Font Colour

HTML FONTS