New coder- please help with creating tribute page

Hi,

Thanks in advance for helping, I have a problem described below and my code is at the bottom, (the problem part is bolded).
cheers

Problems:

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

o.assert.isNotNull(document.getElementById("img-caption")),o.assert.strictEqual(n()("#img-div").find("#img-caption").length,1,'Element is not a child of id="img-div" ');var e=document.getElementById("img-caption").innerText;o.assert.isAbove(e.length,0,"Element does not have any content ")

<!doctype html>

TRIBUTE PAGE ol { line-height: 200%; } img { display: block; max-width: 100%; }
    </style>
</head>
<body>
    <div id="main">
        <h1 id="title">
            Dr. Puss Mcfluff
        </h1>
        <p> The cat that will make me a good webdev someday (finger crossed)</p>
        <figure id="img-div">
            <img id="image" src="https://www.freecatphotoapp.com/your-image.jpg" alt="Dr.Puss Mcfluff">
            **<figcaption id="image-caption">Dr.Puss Mcfluff inside the united nation building giving speech about cat gene mutation at 2019</figcaption>**
        </figure>
        <ol id="tribute-info">
            <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 Kate Meowpuss. Gets laid off due to budget cuts. Inspired by Loco da man, he returns to school study under Stakman, who teaches him about breeding kittens. </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 Meow Genetics & 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 cats - including different varieties for each major climate on Earth. </li>
            <li><strong>1953</strong> - crosses a short, study dwarf rabbit breed responsible for 95% of their populations</li>
            <li><strong>1970</strong> - receives the Nobel Peace Prize for study of dwarf rabbit</li>
        </ol>
        <a id="tribute-link" href="http://www.wikipedia.com/pusssmcfluff" target="_blank">For additional information please visit this site</a>

    </div>
</body>

Hey,

Double-check your caption id, must be id="img-caption"

upd: I understand that this sounds obvious, just do or copy paste this id.

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