E-mail List Archives
Re: Headings or Table Captions
From: Jared Smith
Date: Nov 2, 2016 1:16PM
- Next message: Paul J. Adam: "Re: Headings or Table Captions"
- Previous message: Dominic Capuano (gmail): "Accessible PDFs to show case"
- Next message in Thread: Paul J. Adam: "Re: Headings or Table Captions"
- Previous message in Thread: Birkir R. Gunnarsson: "Re: Headings or Table Captions"
- View all messages in this Thread
An element can only have one role, so it will be either a caption OR a
heading in this case. You can't have both with one element.
Birkir's recommendation works, but with HTML5 (and it works fine in
earlier HTML, though will cause a validation error), you can put the
heading inside the caption:
<caption><h2>Heading Text</h2></caption>.
Jared
- Next message: Paul J. Adam: "Re: Headings or Table Captions"
- Previous message: Dominic Capuano (gmail): "Accessible PDFs to show case"
- Next message in Thread: Paul J. Adam: "Re: Headings or Table Captions"
- Previous message in Thread: Birkir R. Gunnarsson: "Re: Headings or Table Captions"
- View all messages in this Thread