Tribute Page - Build a Tribute Page


I’m finishing up my Tribute Page project and I have one failing test. It reads:

Within the “img-div” element, I should see an element with a corresponding id=“img-caption” that contains textual content describing the image shown in “img-div”

Here’s my code:

<div id="img-div">
            <img id="image" src="">
       <h2 id="img-caption">Steve Jobs in his 20's</h2><br>

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.

Your browser information:

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

Challenge: Tribute Page - Build a Tribute Page

Link to the challenge:


Could you post your full html code?

Sometimes this kind of problem is caused by a syntax error earlier in the code.

sureee here is whole code

type or paste code here
<!DOCTYPE html>
<html lang="en">
    <link rel="stylesheet"  href="styles.css">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Tribute to Steve Jobs</title>
      <main id="main">
        <div id="heading" class="center">
          <h1 id="title" class="center">Steve Jobs</h1>
          <p class="font"><i>The man who loved innovation</i></p>
          <div id="img-div">
			<img class="center" id=image src="" alt="Steve Jobs with his Macintosh">
			<div class="center"><br>
			<p id="img-caption" class="font">Steve Jobs in his 20's with early version of Macintosh</p><br>
       <div id="tribute-info" class="center">
         <h2 class="font">Here's a time-line of Steve Job's life: </h2>
         <ul class="font" style="text-align: justify;">
           <li><b>1955</b> - Steve Jobs was born February 24, 1955, in San Franciso, California. </li>
           <li><b>1933</b> - 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><b>1935</b> - Has to stop school and save up more money. Works in the Civilian Conservation Corps, helping starving Americans. "I saw how food chamged them", he said, "All of this left scars on me". </li>
           <li><b>1937</b> - Finishes university and takes a job in the US Forestry Service </li>
           <li><b>1938</b> - Marries wife of 69 years Margret Gibson. Gets laid off due to budget cuts. Inpired by Elvin Charles Stakman, he returns to school study under Stakeman, who teaches him about breeding pest-resistent plants. </li>
           <li><b>1941</b> - Tries to enroll in the military after the Pearl Harbor attack, but is rejected. Instead, the military asked his labs to work on waterprrof glue, DDT to control malaria, disinfectants, and other applied science. </li>
           <li><b>1942</b> - Recieves a Ph.D in Genetics and Plant Pathology</li>
<li><b>1944</b> - Rejects a 1005 salary increase from Dupont, leaves behind his pregnant wife, and flies to Mexico to head  a new 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><b>1945</b> - Discovers away to grown wheat twice each season, doubling wheat yields </li>
           <li><b>1953</b> - Crosses a short, sturdy dwarf of breef of wheat with a high-yeilding American breed, creating a strain that responds well to fertilizer. It goes on to provide 95% of Mexico's wheat </li>
           <li><b>1962</b> - 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><b>1970</b> - Receives the Nobal Peace Prize </li>
           <li><b>1983</b> - Helps seven African countries dramatically increase their maize and sorghum yields </li>
           <li><b>1984</b> - Becomes a distinguished professor at Texas A&M University </li>
           <li><b>2005</b> - 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 corps 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><b>2009</b> - dies at the age of 95 </li>
<div class="center">
            <p class="font"><i>|I was lucky to get into computers when it was a very younge and idealistic industry. There weren't many degress offered in computer science,so people in computers were brilliant people from mathematics, physics, music, zoology, whatever. They loved it, and no one was really in it for the money... There are people around here who start companies just to make money, but the great companies, well, that's not what they're about."</i>
                         -Steve Jobs</p>
                        <h3 class="font">You can learn more about this incredible man on
				<a href="" id="tribute-link" target="_blank">

	<script src=""></script>

all of your tests except the last two pass for me.

Well, it wasn’t a syntax error.

When I tested your code on the project page, I realised that the wording of the failing test is a little different to the wording in the instructions.

The test says

You should have a figcaption or div element with an id of img-caption

If you change your h2 “img-caption” element to a div element your code should pass.

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