RE: Heading inside Caption - all good?

Wow, that's quite exciting 😊

But I am easily pleased.

Thank you!
Louise

-----Original Message-----
From: Bristow, Alan <Alan.Bristow@elections.ca> 
Sent: 28 July 2021 13:42
To: w3c-wai-ig@w3.org
Subject: 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

This email (and attachments) are confidential and intended for the addressee(s) only. If you are not the intended recipient please notify the sender, 
delete any copies and do not take action in reliance on it. Any views expressed are the author's and do not represent those of IOP, except where specifically 
stated. IOP takes reasonable precautions to protect against viruses but accepts no responsibility for loss or damage arising from virus infection. 
For the protection of IOP's systems and staff emails are scanned automatically. 

Institute of Physics. Registered charity no. 293851 (England & Wales) and SCO40092 (Scotland)
Registered Office:  37 Caledonian Road, London, N1 9BU  

Received on Wednesday, 28 July 2021 12:48:29 UTC