HTML caption align property
Examples
And aligned with the bottom of the <caption> element in the form:
<table border="1">
<caption align="bottom">My savings</caption>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
<caption align="bottom">My savings</caption>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
try it"
Browser Support
All major browsers support align attribute.
note:
- Internet Explorer 8 supports the "left", "right", "top", and "bottom" value.
- Internet Explorer 9+ support "top", and "bottom" value.
- Firefox supports the "left", "right", "top", and "bottom" value.
- Opera supports the "left", "right", "top", and "bottom" value.
- Chrome supports the "top", and "bottom" value.
- Safari supports the "top", and "bottom" value.
Definition and Usage
HTML5 does not support <caption> align attribute. Use CSS instead.
<Caption> The align attribute is deprecated in HTML 4.01.
align attribute specifies the alignment of caption elements.
The property caption element as a block to the left, right, top, bottom of the table alignment.
Compatibility Notes
THTML5 not support <caption> align attribute. Use CSS instead.
CSS Syntax: <caption style = "caption-side: bottom"> or <caption style = "text-align: left">
CSS Example: Positioning Table Headings
In our CSS tutorial you can find more information about the caption-side details of the property.
grammar
<caption align="left|right|top|bottom">
Property Value
value | description |
---|---|
left | The title on the left in the table. |
right | Heading to the right of the table. |
top | The title of the table top. |
bottom | Title in the table below. |