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 HTML Basics Going Further with HTML HTML Entities and Reserved Characters

Ben Warman
Ben Warman
2,084 Points

code has gone wrong and can't workout why

Can someone please help me why I have an error message after the second <li>?

 <aside>
    <h3>Top VR Resources</h3>
    <ol>
      <li><a href="#" target="_blank">Learn to create educational experiences in VR</a></li>
      <li><a href="#" target="_blank">Virtual Reality in Entertainment</a></li>
      <li><a href="#" target="_blank">Interact with buildings and products in VR</a></li>
      <li><a href="#" target="_blank">Use VR for teleconferencing and social media</a></li>
    </ol>

    <hr>

    <blockquote>
      "Virtual reality was once the dream of science fiction. But the internet was also once a dream, and so were computers and smartphones. The future is coming." 
      <footer>
      - <cite><a href="https://www.facebook.com/zuck/posts/10101319050523971">Mark Zuckerberg</a></cite>
      </footer>
    </blockquote>
  </aside>

   <footer>
     <p><small>&copy;2017 Experience VR, The Blog</small></p>
   </footer>
 </div>

</body> </html>

Where do you see this error message and what does it say?

3 Answers

The workspace snapshot helps. I can see it now. One of the things to notice is the syntax coloring after this code:

"mailto:coolvrexperience@gmail.com>coolvrexperience@gmail.com

It turns blue or green or whatever color that is indicating a string but continues on for more lines than it should. This is because you are missing an end quote.

"mailto:coolvrexperience@gmail.com>coolvrexperience@gmail.com"

Once the quote is added the closing p tag just after turns red. This is because the link needs a closing tag prior to the closing p tag.

In addition to syntax coloring in the workspace you can use an online validator to check for errors. I pasted the code into this one and it came up with this error (among others)

Error: Quote " in attribute name. Probable cause: Matching quote missing somewhere earlier. At line 90, column 25 <li><a href="#" target="_blan

which points you in the direction of looking for a missing quote earlier in the code. Give it a try sometime. It can be very helpful.

Ben Warman
Ben Warman
2,084 Points

shame we can shame images or screen grabs on here.

basically red from second line of (<li><a href=") just to this point then simlar higlighting about 12 digets on the start of most left lines all the way down.

here's the link to workspace if it helps - https://w.trhou.se/bz16u93acz

Thanks

Ben Warman
Ben Warman
2,084 Points

Sorted thanks very much Kris