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

Code Validation Error

Here is the error

Line 32, Column 15: Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections.

and the code....

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Sildenafil Productions</title>
    <link rel="stylesheet" href="css/normalize.css">
    <link href='http://fonts.googleapis.com/css?family=Changa+One%7COpen+Sans:400italic,700italic,400,700,800%7COpen+Sans+Condensed:300,300italic,700' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="css/main.css">
    <link rel="stylesheet" href="css/responsive.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
      nav a {
        color: white;
      }
    </style>
  </head>
  <body>
    <header>
      <a href="index.html" id="logo">
        <h1>Sildenafil Productions</h1>
        <h2>Erecting Masterpieces</h2>
      </a>
      <nav>
        <ul>
          <li><a href="index.html" class="selected">Portfolio</a></li>
          <li><a href="about.html">About</a></li>
          <li><a href="contact.html">Contact</a></li>
        </ul>
      </nav>
    </header>
    <div id="wrapper">
      <section>
        <ul id="gallery">
          <li>
            <a href="Images/numbers-01.jpg">
              <img src="Images/numbers-01.jpg" alt="">
              <p>Videos</p>
            </a>
          </li>
          <li>
            <a href="Images/numbers-02.jpg">
              <img src="Images/numbers-02.jpg" alt="">
              <p>About</p>
            </a>
          </li>
          <li>
            <a href="Images/numbers-06.jpg">
              <img src="Images/numbers-06.jpg" alt="">
              <p>Pictures</p>
            </a>
          </li>
          <li>
            <a href="Images/numbers-09.jpg">
              <img src="Images/numbers-09.jpg" alt="">
              <p>Awards</p>
            </a>
          </li>
          <li>
            <a href="Images/numbers-12.jpg">
              <img src="Images/numbers-12.jpg" alt="">
              <p>Contact</p>
            </a>
          </li>
        </ul>
      </section>
      <footer>
        <a href="https://twitter.com/dr3amz3z"><img src="Images/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a>
        <a href="https://www.facebook.com/profile.php?id=100006275295671"><img src="Images/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>
        <p>&copy; 2014 SilDL Productions.</p>
      </footer>
    </div>
  </body>
</html>

1 Answer

You can either add a heading to your section as the warning suggests or replace the

<section></section>         

with a

<div></div>

More info at: http://stackoverflow.com/questions/24155024/w3c-html-validation-error-section-lacks-heading-consider-using-h2-h6-elements

Hope this helps?

I added the "div" to it in place of "section" and that worked beautifully! Thank you!

No problem, glad you managed to resolve it :)