In HTML, the <caption> tag is used to add a caption or title to an HTML table. Table captions add information on what the tabular data represents. The <caption> element must be the first child of the <table> element.
The <caption> tag defines a table caption.The <caption> tag must be inserted immediately after the <table> tag.Tip: By default, a table caption will be center-aligned above a table. However, the CSS properties text-align and caption-side can be used to align and place the caption....
The CAPTION tag is used to provide a caption for a TABLE. This caption can either appear above or below the table. This can be indicated with the ALIGN attribute. It is usually centered with respect to the table itself, and usually appears in bold or is emphasized in some other way. ...
The <caption> tag must be inserted immediately after the <table> tag.Note: You can specify only one caption per table.Tip: By default, a table caption will be center-aligned above a table. However, the CSS properties text-align and caption-side can be used to align and place the ...
The example below shows the <caption> tag in action.ExampleTry this code » <table> <caption>User Details</caption> <thead> <tr> <th>No.</th> <th>Name</th> <th>Email</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>John Carter</td> <td>johncarter@mail.com</td> ...
SmartTagActions SmartTagOptions SmartTagRecognizer SmartTagRecognizers SmartTags Sort SortField SortFields SoundNote SparkAxes SparkColor SparkHorizontalAxis Sparkline SparklineGroup SparklineGroups SparkPoints SparkVerticalAxis Speech SpellingOptions Spinner Spinners Style Styles Tab TableObject TableStyle TableStyle...
TableWidthType TableWidthUnitValues TableWidthValues 选项卡 TabStop TabStopLeaderCharValues TabStopValues Tag TargetScreenSize TargetScreenSizeValues TemplateCode TemporarySdt Text TextAlignment TextBoxContent TextBoxFormFieldType TextBoxFormFieldValues TextBoxTightWrap TextBoxTightWrapValues TextDirection TextDir...
<caption>标记是在<table>标记之后出现的第一个标记。 <table>标记由<tr>,<th>和<td>标记组成。 大多数浏览器将在表格上方呈现<caption>标记,但是您可以使用CSS caption-side属性更改此行为。 <caption> 标签定义表格的标题。 <caption> 标签必须直接放置到 <table> 标签之后。 注意:每个表格只能指定一个标题...
caption { display: table-caption; text-align: center; } Browser Support for HTML<caption>Tag Following browsers support this attribute: Firefox 1+ Google Chrome 1+ Internet Explorer 4+ Safari 1+ Opera 4+ ← HTML canvas Tag HTML col Tag → ...
this is very easy and you can use it withanystyle whether it uses automated numbering or not, or when the title is very long. Just use the line breaker (Shift+Return) at the point you need. Line breaker doesnotend a paragraph therefore any style you include in a ToC or table of ca...