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:
To format code so it’s visible, either wrap it in single backticks for a small amount of code, or triple backticks on an otherwise blank line before and after for a large amount of code.
<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 li
s 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):
system
Closed
June 21, 2016, 12:33am
11
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.