HTML table summary attribute
Examples
The following HTML table defines a summary table of contents:
<table border="1" summary="Monthly
savings for the Flintstones family">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
try it"
Browser Support
summary property has no visual effect in an ordinary Web browser, but you can use screen readers.
Definition and Usage
HTML5 does not support the <table> summary attributes.
summary attribute specifies the summary table of contents.
grammar
<table summary="text">
Property Value
值 | 描述 |
---|---|
text | 表格内容的摘要。 |
HTML <table> tag