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

Where's my mistake????

Can someone pinpoint why this is not working????

index.html
<!DOCTYPE html> 
<html>
  <head>
    <title>The Moon</title>
  </head>
  <body>
<img src"img/moon.jpg">
  </body>
</html>

1 Answer

Rich Donnellan
MOD
Rich Donnellan
Treehouse Moderator 25,635 Points

Hey, Lynn!

You're missing the equals sign (=).

The proper syntax for an image tag is:

<img
  src="image-source.jpg"
  alt="Provide alternate text for accessiblilty" 
/>

Source: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Img