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 trialKevin Seagrave
9,508 Pointswarning when validating html code
i get this error message
Validation Output: 3 Warnings
Below is a list of the warning message(s) produced when checking your document. Warning Line 27, Column 15: Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections. <section>
here is my code for that section
</header> <div id="wrapper"> <section> <ul id="gallery"> <li> <a href="img/numbers-01.jpg"> <img src="img/numbers-01.jpg" alt=""> <p>Experimentation with colour and texture.</p> </a> </li> <li> <a href="img/numbers-02.jpg"> <img src="img/numbers-02.jpg" alt=""> <p>Playing with blending modes in Photoshop.</p> </a> </li> <li> <a href="img/numbers-06.jpg"> <img src="img/numbers-06.jpg" alt=""> <p>Trying to create a 80s style of glows.</p> </a> </li> <li> <a href="img/numbers-09.jpg"> <img src="img/numbers-09.jpg" alt=""> <p>Drips created using Photoshop brushes.</p> </a> </li> <li> <a href="img/numbers-12.jpg"> <img src="img/numbers-12.jpg" alt=""> <p>Creating shapes using repitition.</p> </a> </li> </ul> </section> <footer>
can anyone tell me what i have done wrong please
2 Answers
Rich Bagley
25,869 PointsHi Kevin,
It looks to be suggesting that your section could do with a heading.
This is purely a suggestion and although it is preferred you don't need to include this.
You can find the general information on the section tag here.
Thanks
-Rich
Tomy Lim
4,571 PointsTry replacing your "<section>" with the "<div>" element.
Kevin Seagrave
9,508 PointsOk will try that thank you.
Kevin Seagrave
9,508 PointsKevin Seagrave
9,508 PointsThanks for the reply, I wont worry to much about this if its only a suggestion, but thanks for the help.
Rich Bagley
25,869 PointsRich Bagley
25,869 PointsNo problem :)