HTML – Table caption

Previous
Next

Table Caption: The caption tag will serve as a title or explanation for the table and it shows up at the top of the table. This tag is deprecated in newer version of HTML/XHTML.

<!DOCTYPE html>
<html>
	<body>
		<table border="1" width="100%">
		<caption>This is the caption</caption>
			<tr>
				<td>row 1, column 1</td><td>row 1, columnn 2</td>
			</tr>
			<tr>
				<td>row 2, column 1</td><td>row 2, columnn 2</td>
			</tr>
		</table>
	</body>
</html>
Previous
Next

Courses Enquiry Form