Tribute Page - Build a Tribute Page

Hello,

Would anyone know what me error is here by any chance? (CSS code not having any impact on html…the formatting I put in is not what I want, I was just testing it out…)

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
<meta charset="UTF-8"/>
<link rel="stylesheet" href="styles.css">
<title>Dr. Norman Borlaug</title>
</head>
<body>
  <main id="main">
    <section id="Picture area">
    <h1 id="title">Dr. Norman Borlaug</h1>
    <p>The man who saved a billion lives</p>
   <div id="img-div"> <img src="https://images.squarespace-cdn.com/content/v1/5256f6e4e4b086e2b62842e2/1424503144150-2B8ORZP22DKI9ODNFM9K/image-asset.jpeg?format=2500w" id="image">
    <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.</img-caption>
    </div>
    </section>
    <section>
      <h2>Here's a timeline of Dr. Borlaug's life:</h2>
     <div id="tribute-info"> <ul>
        <li><span>1914</span> - Born in Cresco, Iowa</li>
        <li><span>1933</span> - 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><span>1935</span> - 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><span>1937</span> - Finishes university and takes a job in the US Forestry Service</li>
        <li><span>1938</span> - 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><span>1941</span> - 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><span>1942</span> - Receives a Ph.D. in Genetics and Plant Pathology</li>
        <li><span>1944</span> - Rejects a 100% salary increase from Dupont, leaves behind his pregnant wife, and flies to Mexico to head a new plant pathology program. Over the next 16 years, his team breeds 6,000 different strains of disease resistent wheat - including different varieties for each major climate on Earth.</li>
        <li><span>1945</span> - Discovers a way to grown wheat twice each season, doubling wheat yields</li>
        <li><span>1953</span> - crosses a short, sturdy dwarf breed of wheat with a high-yeidling American breed, creating a strain that responds well to fertilizer. It goes on to provide 95% of Mexico's wheat.</li>
        <li><span>1962</span> - Visits Delhi and brings his high-yielding strains of wheat to the Indian subcontinent in time to help mitigate mass starvation due to a rapidly expanding population</li>
        <li><span>1970</span> - receives the Nobel Peace Prize</li>
        <li><span>1983</span> - helps seven African countries dramatically increase their maize and sorghum yields</li>
        <li><span>1984</span> - becomes a distinguished professor at Texas A&M University</li>
        <li><span>2005</span> - states "we will have to double the world food supply by 2050." Argues that genetically modified crops are the only way we can meet the demand, as we run out of arable land. Says that GM crops are not inherently dangerous because "we've been genetically modifying plants and animals for a long time. Long before we called it science, people were selecting the best breeds."</li>
        <li><span>2009</span> - dies at the age of 95.</li>
        </ul>
        </div>
        <p>"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>
<h3>If you have time, you should read more about this incredible human being on his <a href target="_blank"="https://www.w3schools.com" id="tribute-info">Wikipedia Entry</a></h3>

  </main>
</body>
</html>
/* file: styles.css */
title{font-colour: red;}

Your browser information:

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

Challenge Information:

Tribute Page - Build a Tribute Page

Hello!

Try using the # before the title and only use color not font color.

Happy coding!

1 Like

We need to be very specific on what we are trying to style. If it is an id, the # for id should be before the selector name. If it is a class, it is important to remember the dot . before the selector name.

I hope this helps you some.

1 Like

It does, thank you so much. I think I was reading ‘title’ as an ‘element’, rather than a class or ID and if I’m honest, I am still reading it that way , but will try to read around to understand why it is not an element.

1 Like

You are very welcome. I guess I look at it, if I had to id it, it needs to be #, and if made it to class, I am right to the point .
I know it is a bit crazy way to work it out. But, it has helped me thus far.

I am not sure; but, maybe this article from the fCC News category can help you.

Happy coding!

1 Like

thank you very much. I think it confuses me because, so far, I have understood that anything that is classed as an ‘ID’ needs to be specifically identified as such (e.g. to my mind, this would mean the ‘element’ would have to be given the id=“title” in order to have that ID specifically (i.e. ).

I hope that makes some sense!

That is very helpful - thank you. And I will definitely try to keep up the momentum, as enjoying it so far. Thank again.

1 Like

I understand my mistake now. I was confusing the title element in the head section, with the h1 element with the ID of 'title.

Thanks for your help with this.

1 Like

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