< All the HTML Tags >

<caption></caption>

Video Coming Soon...

  • caption

    Tag Type

    block

    Tag Category

    tables

    Defines a caption for a table

    Viewed

    1

    Examples

    1

Definition:

The HTML <caption> tag defines a title or explanation for a table, placed at the top of the table by default.

This tag helps provide context for the data presented within the table, enhancing accessibility and improving the overall user experience. It is typically placed directly after the <table> tag.

Using the `<caption>` tag correctly helps users understand the content of a table, particularly for those using screen readers or other assistive technologies.

Attributes:

Global attributes (e.g., class, id, style)

Accessibility:

Coming Soon…

Default caption Example:

Using the <caption> tag to add a title to a table.
<table><caption>Table Title</caption></table>

Default caption Result:


Coming Soon…

Community Examples:

Coming Soon…
Coming Soon…