caption ... ⁄caption, display in browser
Browser display, caption element
- empty caption element (start tag, end tag only): does not display in browser
- its content, type text: displays in browser, centered above the table
- its children, flow content: the display depends strictly on the nested element
Video demonstration caption element, view in browser
HTML5 caption, browser display, Tutorial
min | video details |
---|---|
00:05 | testing the browser display of the caption element |
00:10 | 1. table without a caption |
00:16 | no caption |
00:22 | 2. table with an empty caption (no content inside it) |
00:30 | no caption |
00:33 | 3. table with a caption (with content inside it) |
00:36 | the caption displays above the table |