HTML4 HTML5
Table title/caption is placed between the opening <caption> and closing </caption> tags.
Both opening and closing tags are required.
align="..." - (left, right, top, bottom) Defines caption text alignment. Deprecated in HTML4. Removed in HTML5. Use CSS style sheets for alignment instead.
Code:
The browser will interpret this code as follows:
| Fueled [l] | Driven [km] |
|---|---|
| 42.4 | 815 |
| 40.7 | 786 |