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

i don't understund this question

explain me more

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>Go back to the top of the page.</a>

  </body>
</html>

1 Answer

<!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. You need to have a src(source) for your image. The alt is for describing the image if the picture doesn't load.
  2. paragraph tags are for text.
  3. You need your "href" to reference where the the link will go. In this case is was to the (#top) of the page.