HTML Introduction to HTML and CSS HTML: The Structural Foundation of Web Pages and Applications Test: Creating an HTML Element

pratyush raj
pratyush raj
7,048 Points

Find the anchor tag on the page. Set it so that it points to the top of the page. (Hint: you'll need the href attribute.

index.html
<!doctype>
<html>
  <head>
    <title>My trip to Spain</title>
  </head>
  <body>

    <img src="images/spain.jpg" alt="A picture of me in Spain">
    <p> Here is a picture of me in Spain last summer!</p>
    <a href-"#top"> Go back to the top of the page.</a>

  </body>
</html>

1 Answer

Nelson Torres
Nelson Torres
2,207 Points

I believe your are missing the equal sign in front of the href as you have a dash sign. <a href="#top">