Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
131 changes: 38 additions & 93 deletions CSS3/Tribute Page/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,121 +4,66 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> Tribute Page</title>

<!--add css file link Link-->
<title>Tribute Page</title>

<!-- Google Font -->
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap" rel="stylesheet">

<!-- CSS -->
<link rel="stylesheet" href="style.css">

</head>
<body>

<body>

<main id="main">
<h1 id="title">Dr. Norman Borlaug</h1>
<p>The man who saved a billion lives</p>
<p class="subtitle">The man who saved a billion lives</p>

<figure id="img-div">
<img src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute-page-main-image.jpg" id="image"text="Dr. Norman Borlaug seen standing in Mexican wheat field with a group of biologists" />
<figure id="img-div">
<img
src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute-page-main-image.jpg"
id="image"
alt="Dr. Norman Borlaug standing in a Mexican wheat field with biologists"
/>
<figcaption id="img-caption">
Dr. Norman Borlaug, third from the left, trains biologists in Mexico on ow to increase wheat yields - part of his life-long war on hunger
Dr. Norman Borlaug (third from left) training scientists in Mexico to increase wheat yields.
</figcaption>
</figure>

<section id="tribute-info">
<h3 id="headline">Here's a time line of Dr. Borlaug's life:</h3>
<ul>
<li><strong>1914</strong> - Born in Cresco, Iowa</li>
<li>
<strong>1933</strong> - 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>
<strong>1935</strong> - 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>
<strong>1937</strong> - Finishes university and takes a job in the US
Forestry Service
</li>
<li>
<strong>1938</strong> - 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>
<strong>1941</strong> - 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>
<strong>1942</strong> - Receives a Ph.D. in Genetics and Plant Pathology
</li>
<li>
<strong>1944</strong> - 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>
<strong>1945</strong> - Discovers a way to grown wheat twice each
season, doubling wheat yields
</li>
<li>
<strong>1953</strong> - 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>
<strong>1962</strong> - 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><strong>1970</strong> - receives the Nobel Peace Prize</li>
<li>
<strong>1983</strong> - helps seven African countries dramatically
increase their maize and sorghum yields
</li>
<li>
<strong>1984</strong> - becomes a distinguished professor at Texas A&M
University
</li>
<li>
<strong>2005</strong> - 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><strong>2009</strong> - dies at the age of 95.</li>
</ul>

<h3 id="headline">📜 Timeline of Dr. Borlaug's Life</h3>

<ul>
<li><strong>1914</strong> – Born in Cresco, Iowa</li>
<li><strong>1933</strong> – Attends University of Minnesota</li>
<li><strong>1935</strong> – Works in Civilian Conservation Corps</li>
<li><strong>1937</strong> – Joins U.S. Forestry Service</li>
<li><strong>1938</strong> – Marries Margret Gibson</li>
<li><strong>1942</strong> – Earns Ph.D. in Genetics</li>
<li><strong>1944</strong> – Moves to Mexico to fight hunger</li>
<li><strong>1945</strong> – Doubles wheat yields</li>
<li><strong>1962</strong> – Helps prevent famine in India</li>
<li><strong>1970</strong> – Wins Nobel Peace Prize</li>
<li><strong>2009</strong> – Passes away at age 95</li>
</ul>

<!---HTMl Blockquotes elements: section is quoted from another source. -->
<blockquote>
<cite="http://news.rediff.com/report/2009/sep/14/pm-pays-tribute-to-father-of-green-revolution- borlaug.htm"></cite>
<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."
<p>
"Borlaug's life and achievement are testimony to the far-reaching contribution
that one man's scientific vision can make to humanity."
</p>
<!---citation attribute: -->
<cite>-- Indian Prime Minister Manmohan Singh
</cite>
<cite>— Manmohan Singh, Former Prime Minister of India</cite>
</blockquote>
<h3>
If you have time, you should read more about this incredible human being
on his

<h3 class="footer-text">
Learn more on his
<a id="tribute-link"
href="https://en.wikipedia.org/wiki/Norman_Borlaug"
target="_blank"> Wikipedia entry
</a>.
target="_blank">Wikipedia page</a>
Comment on lines 61 to +63
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Add rel="noopener noreferrer" for security on target="_blank".

This prevents reverse‑tabnabbing and avoids leaking window.opener.

🔒 Suggested fix
-      <a id="tribute-link"
-         href="https://en.wikipedia.org/wiki/Norman_Borlaug"
-         target="_blank">Wikipedia page</a>
+      <a id="tribute-link"
+         href="https://en.wikipedia.org/wiki/Norman_Borlaug"
+         target="_blank"
+         rel="noopener noreferrer">Wikipedia page</a>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<a id="tribute-link"
href="https://en.wikipedia.org/wiki/Norman_Borlaug"
target="_blank"> Wikipedia entry
</a>.
target="_blank">Wikipedia page</a>
<a id="tribute-link"
href="https://en.wikipedia.org/wiki/Norman_Borlaug"
target="_blank"
rel="noopener noreferrer">Wikipedia page</a>
🤖 Prompt for AI Agents
In `@CSS3/Tribute` Page/index.html around lines 61 - 63, The anchor element with
id="tribute-link" uses target="_blank" but lacks a rel attribute, which risks
reverse-tabnabbing; update the <a id="tribute-link"
href="https://en.wikipedia.org/wiki/Norman_Borlaug" target="_blank"> element to
include rel="noopener noreferrer" so the external link opens in a new tab safely
and does not expose window.opener.

</h3>
</section>
</main>

</body>
</html>
Loading