Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Tables Structuring Tables The Caption Element

Elias Paiva
Elias Paiva
7,348 Points

Can I just use the <h1> element instead of the <caption> element?

Instead of the <caption> element, can I use a heading element?

1 Answer

Hi Elias,

I think in many cases you would be fine to use a heading element (especially when your page consists of only one table and nothing else), but in others where you potentially have multiple elements (i.e. tables, forms, divs, multiple headings, etc), a caption would likely be more appropriate. Specifically, for those browsing the web with screen readers.