HTML Help please %

You can add images to your website by using the img element. img elements have an opening tag without a closing tag. A tag for an element without a closing tag is known as a self-closing tag.

Add an img element below the p element. At this point, no image will show up in the browser.

Can’t tell how to write this correctly?

1 Like

HI @jdryan1217 !

Welcome to the forum!

If you need help with a challenge, it is best to post your code and challenge link so we can assist you.

CODE BELOW

<h1>CatPhotoApp</h1>

<main>

  <h2>Cat Photos</h2>

  <!-- TODO: Add link to cat photos -->

  <p>Click here to view more cat photos.</p>

</main>

Ok, so literally watched a video and did it the same way and it won’t take it…

Step 7

You can add images to your website by using the img element. img elements have an opening tag without a closing tag. A tag for an element without a closing tag is known as a self-closing tag.

Add an img element below the p element. At this point, no image will show up in the browser

      <p>Click here to view more cat photos.</p>

      <img />

I am going to assume is this your most recent code here

And not this peice which doesn’t have the img element

When I ran your most recent code it passes for me.

Please ensure that you have disabled any extensions that interface with the freeCodeCamp website (such as Dark Mode and Ad Blocker), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.
or try another browser