HTML HTML Basics Images, Text and Links Images and File Paths Challenge

Felistas Mudidi
Felistas Mudidi
6,677 Points

Could you please assist me with this question :Next, provide the browser with alternative text describing the image.

failing to see where i have gone wrong. My answer was: <img src="img/moon.jpg"alt="Shape and size of the moon">

index.html
<!DOCTYPE html> 
<html>
  <head>
    <title>The Moon</title>
  </head>
  <body>
    <img src="img/moon.jpg">"alt="the moon at midnight">
</body>
</html>

3 Answers

Kevin Gates
Kevin Gates
14,711 Points

Hi there,

You're really close. Your put this:

<img src="img/moon.jpg">"alt="the moon at midnight">

The issue is that you closed the image tag too soon and had a extra quote. It should be this:

<img src="img/moon.jpg" alt="the moon at midnight">
Kevin Gates
Kevin Gates
14,711 Points

Felistas Mudidi : if you found this answer helpful, can you select "Best Answer" so students with similar questions can benefit from it more easily? Thanks!

Greg Saunders
Greg Saunders
4,411 Points

Kevin is right! Don't close the img tag too soon, and definitely make sure to add the alt text, which is format the same as src.

Felistas Mudidi
Felistas Mudidi
6,677 Points

Thank you so much Kevin and Greg. I got it right following your instructions