Tribute Page - Build a Tribute Page

Tell us what’s happening:
Describe your issue in detail here.
Test says " Your img element should have a display of block". But there is such rule in my css file.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
  <head lang="en">
    <link rel="stylesheet" hfer="styles.css"></link>
      <main id="main">
        <h1 id="title">Dr. Norman Borlaug</h1>
        <p>The man who saved a billion lives</p>
        <div id="img-div">
          <img id="image" src="">
          <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 id="tribute-info">
          <p>Here's a time line of Dr. Borlaug's life:</p>
            <li>1914 - Born in Cresco, Iowa</li>
            <li>1933 - Leaves his family's farm to attend the University of Minnesota, thanks to a Depression era program known as the "National Youth Administration"</li>
            <li>1935 - Has to stop school and save up more money. Works in the Civilian Conservation Corps, helping starving Americans. "I saw how food changed them", he said. "All of this left scars on me."</li>
            <li>1937 - Finishes university and takes a job in the US Forestry Service</li>
            <li>1938 - Marries wife of 69 years Margret Gibson. Gets laid off due to budget cuts. Inspired by Elvin Charles Stakman, he returns to school study under Stakman, who teaches him about breeding pest-resistent plants.</li>
            <li>1941 - Tries to enroll in the military after the Pearl Harbor attack, but is rejected. Instead, the military asked his lab to work on waterproof glue, DDT to control malaria, disinfectants, and other applied science.</li>
            <li>1942 - Receives a Ph.D. in Genetics and Plant Pathology</li>
            <li>1945 - Discovers a way to grown wheat twice each season, doubling wheat yields</li>
          <p class="quote">"Borlaug's life and achievement are testimony to the far-reaching contribution that one man's towering intellect, persistence and scientific vision can make to human peace and progress."

-- Indian Prime Minister Manmohan Singh</p>
          <p>If you have time, you should read more about this incredible human being on his <a id="tribute-link" href="#" target="_blank" value="wiki" >Wikipedia entry</a>.</p>
/* file: styles.css */
  max-width: 100%;
  height: auto;
  margin: 0 auto;

  display: block;

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Tribute Page - Build a Tribute Page

Link to the challenge:

You haven’t linked to the css:

 <link rel="stylesheet" hfer="styles.css"></link>↩

The ‘link’ element is self-closing (it doesn’t have the closing tag). The hfer attribute is not written correctly.

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