404 Help: New York City Blog HTML Feedback

Hi there, when I try to create an anchor to go from clicking one of the categories at the “head” of the code to it’s respective section on the webpage, I get a 404 error. Any advice? Thanks.

<html>
  <head>
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <nav>
        <ul>
        <li>
          <a href="blog">Blog</a>
        </li>
         
          <li>
            <a href="media">Media</a>
          </li>
          
          <li>
            <a href="about">About</a>
          </li>

        </ul>
    </nav>

Think you might have to fix the indentation. To make it cleaner and easier to read:

      <ul>
        <li><a href="">Blog</a></li>
        <li><a href="">Media</a></li>
        <li><a href="">About</a></li>
      </ul>

href="blog" should be href="#blog"
and so on.

3 Likes

Ah got it! Makes sense now thanks guys.

1 Like