HTML Introduction to HTML and CSS Adding a New Web Page Test: Link It Up Challenge

how do Add an href attribute to the anchor tag, and point it to another webpage called "menu.html".


<!doctype html> 
    <title>Al's Restaurant</title>
        <ul class="nav">
          <li><a href="#">Home</a></li>
          <li><a href="food-gallery.html">Food Gallery</a></li>
        <a href="menu.html"> <a> <li>Menu</li> </a>

1 Answer

You're linking it correctly, but for it to work you would have to create an html document first named "menu", you don't actually need the anchor element nested inside your first anchor element, so you could leave it like this:

<a href="menu.html"><li>Menu</li> </a>

Or you can actually be consistent to the other nav links and keep your link like this:

<li><a href="menu.html">Menu</a></li>