For my “Build a Tribute Page” project one test keeps failing and I know the code looks correct.
The test failing is this one -
You should have a figcaption
or div
element with an id
of img-caption
.
Hear is the code :
<!DOCTYPE html>
<html>
<head>
<title>Dr. Norman Borlaug</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<main id="main">
<header class="header">
<h1 id="title">Dr. Norman Borlaug</h1>
<p id="img-caption">The man who saved a billion lives</p>
</header>
<figure id="img-div">
<img
id="image"
src="https://cdn.freecodecamp.org/testable-projects-fcc/images/tribute-page-main-image.jpg"
/>
<figcaption 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.
</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>
</ul>
</section>
<footer>
<p>
If you have time, you should read more about this incredible human
being on his
<a
href="https://en.wikipedia.org/wiki/Norman_Borlaug"
id="tribute-link"
target="_blank"
>
Wikipedia entry.</a
>
</p>
</footer>
</main>
</body>
</html>