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

The program is telling me I do not have a closing figure caption when I do

I have a closing figure tag on the line under the last <figcaption> but the program is telling me I still need a closing <figure> tag. Not sure what is wrong.

index.html
<!DOCTYPE html> 
<html>
  <head>
    <title>The Moon</title>
  </head>
  <body>
   <figure>
    <img src="img/moon.jpg" alt="Image Description"> 
     <figcaption>
       WORK DAMMIT
     <figcaption>  
   <figure>
  </body>
</html>

1 Answer

Nick Renteria
Nick Renteria
10,258 Points

Hi Samantha. It looks like the problem is that the closing figcaption tag does not have the / in the front; it should be:

<figcaption>
  WORK DAMMIT
</figcaption>

Without that forward slash in the beginning of the tag it is read like another opening figcaption tag rather than a closing one. It would also be the same with the figure tag. I hope this helps! :)

Max Senden
Max Senden
23,135 Points

Hi Samantha,

It appears your <figure> tag is not properly closed either

<body>
   <figure>
      <img src="img/moon.jpg" alt="Image Description"> 
       <figcaption>
         WORK DAMMIT
      </figcaption>  
   </figure>
</body>

Hope it helps, Max