Tribute Page - Build a Tribute Page

hello guys. i’ve been getting an error this error " You should have a figcaption or div element with an id of img-caption" its the only error ive not been able to crack

    <figure id="img-div">
  <img id="image" src="" alt=""> <figcaption id="img-caption"><em>His sleepiness</em></figcaption></figure>

hi, welcome to the forum.

Please post all your code (top to bottom) and a link to the challenge/project page.

here is my code on codepen

you have to duplicate ids that are confusing the test.

     <p id="img-caption">The sweetest cat</p>
      <figure id="img-div">
      <img id="image" src="" alt=""> <figcaption id="img-caption">

The p element has id=“img-caption” and so does the figcaption element.

wow, i cant believe i missed that, thank you.

1 Like