Caption (HTML element)
From Wiki @ Karl Jones dot com
Revision as of 06:04, 2 May 2016 by Karl Jones (Talk | contribs) (Created page with "In HTML, the '''caption''' element represents the title of the table that is its parent, if it has a parent and that is a table elem...")
In HTML, the caption element represents the title of the table that is its parent, if it has a parent and that is a table element.
Description
A caption can introduce context for a table, making it significantly easier to understand.
When a table element is the only content in a figure element other than the figcaption, the caption element should be omitted in favor of the figcaption.
Examples
<table> <caption> <p>table 1. Sample table</p> </caption> <tr> <td>1</td> <td>2</td> </tr> <tr> <td>3</td> <td>4</td> </tr> </table>
See also
External links
- caption @ w3.org