Error message: Oops, try again

  • home
  • products
  • services
  • contact
Error message: Oops, try again. I see the
    but I dont see
  • tags with links in them inside the
      .

      if i remove the [id=“nav_container”] the error message then says it’s missing the tag. so my question is this:
      How do I keep the id for the list and still keep the list together???

okay, to make the code show up, i took off the “<” in every line

You should have a look at this:

<ul id="nav_container"> 
<li href="home.html">home
<li href="products.html">products
<li href="services.html">services
<li href="contact.html">contact
</ul>

Thank you.

The error message states that i do not have li inside ul

li elements don’t have href attributes.

If you want your lis to be links, use a elements.

Don’t forget to close your closing tags.

<li><a href="filename.html">Destination</a></li>

should i change the a to b for the second li and so on?

No. the a stands for anchor. I don’t know which exercise you are working on – have you done this one yet?
https://www.codecademy.com/en/courses/web-beginner-en-HZA3b/2/2?curriculum_id=50579fb998b470000202dc8b – it explains a elements.

ahhh that explains why I’m looking in the glossary every few seconds. ha!

now that I’ve started I’d like to finish this is the error message I’m receiving:

Oops, try again. It looks like you forgot to link to your stylesheet!

And here’s the code:


<!DOCTYPE html>
<html lang= 'en'>
<head>
<script.js>
<style.css>

<body>
<ul id="nav_container"> 
<li><a href="home.html">home</a></li>
<li><a href="products.html">products</a></li>
<li><a href="services.html">services</a></li>
<li><a href="contact.html">contact</a></li>
</ul>

How to use the link element (scroll way down for examples):

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.