E-mail List Archives

Re: Another rookie question: tables that use a heading rather than a caption

for

From: Jeremy Echols
Date: Mar 29, 2017 1:50PM


Whoa... I had no idea. That's brilliant, thanks!

Jennifer, thanks for all your input, no offense taken at all. I am definitely a novice in many areas and I'm learning just how often "it depends" comes up. In some cases, I'm actually starting to think a table doesn't make sense in the first place, but there are other cases where the page really does "feel" like it needs both the header and the caption. It's just so much grey area....

-----Original Message-----
From: WebAIM-Forum [mailto: <EMAIL REMOVED> ] On Behalf Of Jared Smith
Sent: Wednesday, March 29, 2017 12:45 PM
To: WebAIM Discussion List < <EMAIL REMOVED> >
Subject: Re: [WebAIM] Another rookie question: tables that use a heading rather than a caption

Jeremy -

With HTML5 you can place the heading inside the caption:
<table>
<caption><h2>Table Caption/Heading</h2></caption>

This is valid HTML and I'm not aware of any downside to doing this.

Jared