Confused my Tribute Page semantics: img-caption test error

Confused my Tribute Page semantics: img-caption test error
0.0 0

#1

I’m finishing up my Tribute Page project and I have one failing test. It reads:

Within the “img-div” element, I should see an element with a corresponding id=“img-caption” that contains textual content describing the image shown in "img-div"

Here’s my code:

<div id="img-div">
       <img src="dr_mae_c_jemison.jpg" alt="" id="image">
       <caption id="img-caption"><em>Dr. Mae C. Jemison's official NASA photo</em></caption>
 </div>

I think the test is looking for a caption code, which I have, but my code isn’t passing. However, it passes when I change the caption to a paragraph. I don’t understand. I do not think a paragraph tag is semantic in this situation. Am I wrong/overthinking or is this a bug?


#2

similar issues here,starting to get bit frustrating :slight_smile: i get 6/10 and tried bit of everything but have to keep looking and trying.