The href attribute goes inside the opening anchor tag. You need to add some text between the opening and closing tags as well. Give it another try.
Good luck!
Hi. I suggest you reset the step to get the code back.
As a hint, the text in the instructions is in uppercase. The attribute value for the href attribute are in lowercase. Attributes should be inside the opening anchor element tags.
The anchor elements themselves need to wrap about the text to make it clickable to the link in the href attribute. Have a look at the preview window to see if you do this, if not you need to still work on it.
If you are having problems please post your updated code back to this thread.
these are the errors im getting when i run my code
// running tests
3. Your second anchor element should have the text of Posts inside your second li element.
4. Your second anchor element should have an href attribute set to “#posts”.
5. Your third anchor element should have the text of Contact inside your third li element.
6. Your third anchor element should have an href attribute set to “#contact”.
// tests completed
Your code so far
<!DOCTYPE html>
<html lang="en">
<head>
<title>Mr. Whiskers' Blog</title>
<meta charset="UTF-8" />
</head>
<body>
<header>
<h1>Welcome to Mr. Whiskers' Blog Page!</h1>
<figure>
<img
src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/1.jpg"
alt="a cat peacefully sleeping"
/>
<figcaption>Mr. Whiskers Sleeping</figcaption>
</figure>
<!-- User Editable Region -->
<nav>
<ul>
<li><a href="#about"</a>About</li>
<li><a href="#posts"</a>Posts</li>
<li><a href="#contact"</a>Contact</li>
</ul>
</nav>
<!-- User Editable Region -->
</header>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
You have created 4 topics for step 9, do not open multiple topics for the same challenge. This time I am going to merge them all together, but keep it in mind,