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 How to Make a Website Responsive Web Design and Testing Website Testing

I got a warning message when I checked the validator.

They said;

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

But they also said this document was successfully checked as HTML5! so I don't know what is the problem.

Thanks.

Could you please link your code? I'd be more than happy to check it out then!

1 Answer

Gregory Radek
Gregory Radek
869 Points

Don't worry. This is actually normal. The validator outputs 2 different kinds of results. Warnings and Errors. Errors are what you must act upon to fix, however warnings are more advisory. A section works best on SEO terms if you add a heading element directly within it at the top, but its not always possible depending on how you have coded your site and this can be ignored if you wish.

Gregory Radek
Gregory Radek
869 Points

Just to add, try adding some other well known websites urls into the validator and you will be surprised how many big well known websites contain tonnes of warnings. As I said, they can be safely ignored.