Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSamantha Fluke
7,163 PointsThe 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.
<!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
10,258 PointsHi 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
23,177 PointsMax Senden
23,177 PointsHi Samantha,
It appears your <figure> tag is not properly closed either
Hope it helps, Max