RuskFamily.com ... the Legend Continues Practice Page
| Home | HTML Guide Start | List of HTML Elements | Next Element | Previous Element |

<CAPTION></CAPTION>

Caption for table or figure


Used to define a caption for a table or figure.

	<html>
	<head>
	<title>A page to show CAPTION useage</title>
	</head>
	<body>
	   .
	   .
	<table border=3 cellspacing=2 cellpadding=2 width="80%">
==>>	<caption>This is a sample table.</caption>
	<tr>
	<td>The first cell<td>Second cell
	</table>

HTML 3.2 Final

The caption element has only one attribute and if you don't specify it then the browsers normally put the caption at the top of the table.

align
You can tell the browser to put the caption at the top or bottom of the table. Use top to have the caption over the table and bottom to have it under the table.

Netscape

    Nothing special.

Microsoft Internet Explorer

    Nothing special.

Internationalization

    Nothing special.

| Home | HTML Guide Start | List of HTML Elements | Next Element | Previous Element |

Michael T. Rusk
Comments to author: mike@ruskfamily.com

All contents copyright © 1996-2001 Michael T. Rusk
All rights reserved.

Valid HTML 4.01!   Valid CSS!

Revised: Sunday, December 30, 2007 11:06 -0500
URL: ./htmlgd/tagcapti.html