Learn HTML by Building a Cat Photo App - Step 7

Tell us what’s happening:

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

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

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->

<!-- User Editable Region -->

      <img src=""></img>
      <p>Everyone loves cute cats online!</p>
      

<!-- User Editable Region -->

    </main>
  </body>
</html>

Your browser information:

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

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 7

Hi @dakshchhatrala,

Welcome to the forum! :partying_face:

As the direction said:

Also, remember that img is a void element. It doesn’t have a closing tag.

It doesn’t seem to be working.

Hi and welcome to the forum!
Could you please create a separate topic using the help button. This allows us to see your code and you can explain your issue easily.
Good luck!

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