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

Warning in W3c Validator

When I plugged my html into the w3c validator, it gave the below warnings. Should I fix this and if so, how? This was the html for building a website, and the code can be found in the link at the bottom. Thanks!

Warning Line 27, Column 15: Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections. <section>

http://codepen.io/mauroj1/pen/pvbqXq.html

1 Answer

Hi Jeff, the validator is recommending you add a heading to your section element to help with document structure. You can read a little more about this on the Treehouse Blog, over at the Mozilla Developer Network, and an explanation for the HTML5 specification below.

The section element represents a generic section of a document or application. A section, in this context, is a thematic grouping of content. The theme of each section should be identified, typically by including a heading (h1-h6 element) as a child of the section element.

Examples of sections would be chapters, the various tabbed pages in a tabbed dialog box, or the numbered sections of a thesis. A Web site's home page could be split into sections for an introduction, news items, and contact information. —W3C Recommendation