Heading inside Caption - all good?

​Hi,

With the Content Model in HTML5 for the CAPTION tag being Flow content (which includes H1 - H6), I am proposing to title TABLES as follows:...

<table>
<caption><h4>Cat food preferences</h4></caption>
...
</table>

...rather than a H# tag above the  TABLE and a CAPTION inside it (often with somewhat duplicated/similar text).

Audio AT users previewing the main areas of a page will then hear a TABLE announced (due to the presence of the H# tag), and there is a programmatic relationship between title text and the TABLE due to the use of CAPTION.

If you know of any negative impact to the use of H# inside CAPTION I would be interested to hear. Thanks.

Cheers,

Alan

-Alan Bristow
Web Programmer
Elections Canada
alan.bristow@elections.ca

Received on Wednesday, 28 July 2021 12:41:58 UTC