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

Error Message When Checking index.html with validator.w3.org

When I paste my html code from my index.html document into the validator.w3.org website, I get an error message that says "Error Line 68, Column 7: End of file reached when inside an attribute value. Ignoring tag." How can I fix this so my code will pass the check?

Hi Katherine,

You'll need to post your html.

https://teamtreehouse.com/forum/posting-code-to-the-forum

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Katherine Halama | Photographer</title>
    <link rel="stylesheet" href="css/normalize.css">
    <link href='http://fonts.googleapis.com/css?family=Droid+Serif:400,700,700italic%7COpen+Sans:700italic,400,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">
  </head>
  <body>
    <header>
      <a href="index.html" id="logo">
        <h1>Katherine Halama</h1>
        <h2>Photographer</h2>
      </a>
      <nav>
        <ul>
          <li><a href="index.html" class="selected">Gallery</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="img/summerflowers1.jpg">
              <img src="img/summerflowers1.jpg" alt="">
              <p>Beautiful flowers in a Santa Barbara garden.</p>
            </a>
         </li>
         <li>
            <a href="img/santamonica_lifeguard.jpg">
              <img src="img/santamonica_lifeguard.jpg" alt="">
              <p>Lifeguard house in Santa Monica.</p>
            </a>
         </li>
         <li>
            <a href="img/malibupano.jpg">
              <img src="img/malibupano.jpg" alt="">
              <p>Panorama of a Malibu beach.</p>
            </a>
         </li>
         <li>
            <a href="img/lightning.jpg">
              <img src="img/lightning.jpg" alt="">
              <p>Lightning strikes over the view outside my house.</p>
            </a>
         </li>
         <li>
            <a href="img/skiing_gopro.JPG.jpg">
              <img src="img/skiing_gopro.JPG" alt="">
              <p>Skiing in Winter Park.</p>
            </a>
         </li>
        </ul>
      </section>
      <footer>
        <a href="http://facebook.com/katherinehalama"><img src="img/facebooklogo.png" alt="Facebook logo" class="social-icon"></a>
        <a href="http://instagram.com/k_halama"><img src="img/instagram-wrap.png" alt="Instagram logo" class="social-icon"></a>
        <p>&copy; 2014 Katherine Halama.</p>
      </footer>
      </div>
  </body>
</html>

The error message in the validator is, "Line 68, Column 7: End of file reached when inside an attribute value. Ignoring tag. </html>"

2 Answers

I found your problem...

<link href='http://fonts.googleapis.com/css?family=Droid+Serif:400,700,700italic%7COpen+Sans:700italic,400,700' rel='stylesheet' type='text/css">

You need to have a single quote at the end after text/css so that they match.

Hope this solves your problem!

Thanks for finding that! I fixed the single quote and then used your "%20" tip in place of the "|" and it fixed the problem!

Thanks again for all your help!

Adama Sy
Adama Sy
7,076 Points

Dude you may need to poste the code, and the good thing is, you have the line and the column where the error is, it's very easy you may miss something or wrote something you did not have too. Will be good if you can find it yourself , best way to learn .

If you copy and paste it in sublime text you may find the exact error marked in red I believe