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

Danny Owen
Danny Owen
477 Points

where to put href attribute

where do i put 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>

2 Answers

Besfort Shehu
Besfort Shehu
6,441 Points

<a href="#top">Go back to the top of the page.</a>

Maddie Duffy
Maddie Duffy
3,659 Points

<a href="#top">Go back to the top of the page.</a>

Hope this helps!