You are here: Reference > HTML > attributes > vAlign (caption)

vAlign attribute (caption)

Browser support:
Specifies the vertical position of the caption element within a table.
In other browsers you can use the caption-side style property instead.
JavaScript page for this attribute: vAlign. You can find other example(s) there.

Possible values:

String that sets the vertical position.
One of the following values:
bottom
Caption is at the bottom of the table.
top
Default. Caption is at the top of the table.
Default: top.

Example HTML code 1:

This example illustrates the use of the vAlign attribute:
<table border="1px">
    <caption id="myCaption" valign="bottom">Fruits</caption>
    <tr>
        <td>Apple</td>
        <td>Pear</td>
        <td>Peach</td>
    </tr>
</table>
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content