<th> and </th>

PURPOSE: To make a table header. Headers are centered by default.

Below is a basic html document. The referenced html tag is in RED. All tags must have a start and a end tag. Most end tags have a / before the tags name, however there are a few that are done differently. The tags that end differently will be noted and highlighted. The order of the start and end tags is also very important to proper display of your page in a web browser.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title> The Page Title Goes Here </title>
</head>
<body>
<table border="1" width="100%" cellspacing="0" cellpadding="2" summary="test table">
<th> A Table Header </th>
<tr>
<td> First </td>
<td> Second </td>
</tr>
<tr>
<td> Third </td>
<td> Fourth </td>
</tr>
</table>
</body>
</html>


The above code produces the following table:

A Table Header
FirstSecond
ThirdFourth

© Copyright 2001,2002 Southern Twilight    All rights reserved.

Back To HTML Examples