HTML &CSS doubts

i need help with “tribute page” project in html &css. i passed 9 tests and cant able to pass last one.here is example of code

<div id="main">
  <div id="title" style="text-align: center;">Srinivasa Ramanujan</div>
  <div id="img-div">
  <img id="image" src="images/330px-Srinivasa_Ramanujan_-_OPC_-_1.jpg" alt="Srinivasa Ramanujan" >
   <div id="image-caption">
   <p>Srinivasa Ramanujan FRS (/ˈsrɪnɪvɑːs rɑːˈmɑːnʊdʒən/;[1] born Srinivasa Ramanujan Aiyangar, 22 December 1887 – 26 April 1920)[2][3] was an Indian mathematician who lived during the British Rule in India. Though he had almost no formal training in pure mathematics, he made substantial contributions to mathematical analysis, number theory, infinite series, and continued fractions, including solutions to mathematical problems then considered unsolvable. Ramanujan initially developed his own mathematical research in isolation: "He tried to interest the leading professional mathematicians in his work, but failed for the most part. What he had to 
            
  </div>
   </div>
   <div id="tribute-info">
 <p> Srinivasa Ramanujan FRS (/ˈsrɪnɪvɑːs rɑːˈmɑːnʊdʒən/;[1] born Srinivasa Ramanujan Aiyangar, 22 December 1887 – 26 April 1920)[2][3] was an Indian mathematician who lived during the British Rule in India. Though he had almost no formal training in pure mathematics, he made substantial contributions to mathematical analysis, number theory, infinite series, and continued fractions, including solutions to mathematical problems then considered unsolvable. Ramanujan initially 
    <a id="tribute-link" target="_blank" href="https://en.wikipedia.org/wiki/Srinivasa_Ramanujan"></a>
        </div>
    </div>

and my error is

  1. Within the “img-div” element, I should see either a <figcaption> or <div> element with a corresponding id=“img-caption” that contains textual content describing the image shown in “img-div”.

can anyone help me

Hello there @ajay458,

  • Next time you want to showcase a code, use the ``` backtick so it is easier for everyone to read.
    See this post to find the backtick on your keyboard.
    The “preformatted text” tool in the editor (</>) will also add backticks around text.
  • As of right now, we can’t really see your img code, so we can’t troubleshoot it.

Thank you for understanding,
Remember to Stay Safe and Happy Coding!! :slight_smile:

Catalactics

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

Please use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks are not single quotes.

markdown_Forums

It’s easier to troubleshoot if you post a link to your entire code. From this snippet, what I can see is this;
<div id="image-caption">
is not the same as this;
<div> element with a corresponding id=“img-caption”