Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.