WebAIM - Web Accessibility In Mind

E-mail List Archives

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

for

From: Jared Smith
Date: Mar 29, 2017 1:45PM


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