Tribute Page - Build a Tribute Page

Tell us what’s happening:
Describe your issue in detail here.
Sir/Madam, I have completed this code but cannot pass the test cases of the last 4 ,I tried in many ways but was unable to complete it, Please explain to me where it is going wrong.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="stylesheet">
    </head>
  
    <main id="main">
      <title>sow></title>
<h1 id="title">Dr. Norman Borlaug</h1>
<div id="img-div">
  <img id="image" src="https://cdn.freecodecamp.org/curriculum/css-photo-gallery/1.jpg"/>
  
  <div id="img-caption">Dr. Norman Borlaug, third from the left, trains biologists in Mexico on how to increase wheat yields - part of his life-long war on hunger</div>
</div>
</div>
<p id="tribute-info">Here's a time line of Dr. Borlaug's life:</p>
<a id="tribute-link" href="https://tribute-page.freecodecamp.rocks/" target="_blank">Hello</a>
      </main>
   
  </html>
/* file: styles.css */
#image{
  display:block;
  max-width:100%;
height:auto;
margin:0;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36

Challenge: Tribute Page - Build a Tribute Page

Link to the challenge:

This is not correct.

Note: Be sure to add <link rel="stylesheet" href="styles.css"> in your HTML to link your stylesheet and apply your CSS”

Welcome to our community!

  • The ‘title’ element should be found within 'head element:
<title>sow></title>
  • The ‘link’ element should have the ‘href’ attribute set to the value of styles.css - that file must always be linked to, in order to get styling for your html elements :
<link rel="stylesheet" href="stylesheet">
  • the ‘margin’ property should be:
margin:0 auto;
  • you have an unnecessary closing </div> tag:
</div>↩
</div>

Hi SowmyaAbraboina,
It seems that there is one extra closing tag, maybe this is the reason.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.