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 trialLiliana Leyva
3,711 PointsWhy do I get this warning when trying to validate html? I do not know how to add the code.
Warning: Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections. From line 28, column 5; to line 28, column 13 per">ā© <section>ā©
2 Answers
Liam English
3,837 PointsIt would appear that <section> requires a heading element, as per best practices.
<section>
<h2>Hello</h2>
</section>
The <h2> that I have used above could also be an h3, h4, h5 or h6, as recommended.
Mark Johnes
3,627 PointsWhere about in the code should this section be placed?
Liliana Leyva
3,711 PointsLiliana Leyva
3,711 PointsThank you Liam, I am going to check about it.
Gray Milmine
3,012 PointsGray Milmine
3,012 PointsThanks Liam - worked for me!