Hi, the last one not ticked, any ideas?

hi, Im really stuck with this part, its the only one thats not ticked

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

<div id="img-div">
    <img         src="https://c2.staticflickr.com/4/3689/10613180113_fdf7bcd316_b.jpg" id="image"/ alt="Dr. Norman Borlaug training biologists in Mexico">
 <for="image"id="image-label"></img>
      <em>
        Dr. Norman Borlaugh</em></p>
      </div>

Your browser information:

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

Challenge: Build a Tribute Page

Link to the challenge:

Well, first of all, what is this?

<for="image"id="image-label">

That is not a properly formatted caption and is not a valid HTML element anyway.

And the id is here?

id="image"/

So, what is that slash doing there? I don’t know if it is breaking your code, but it looks odd.

In general, learn to format/properly indent your code. It would make it a lot easier to find mistakes.

Also, the idea is that you are to give a caption to the image. You can find information on a standard way to put a caption on an image here.

Hi @aclaytonwright !

In addition to the syntax errors mentioned earlier, img tags do not have end tags.

This is the correct way to write an img tag.

<img src="" alt="">

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