Learn HTML by Building a Cat Photo App - Step 7

Tell us what’s happening:
Describe your issue in detail here.
How to add img element with tag
Your code so far

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

<!-- User Editable Region -->

      <p>    <!-- TODO: Add link to cat photos -->See more cat photos in our gallery.</p>
          <elementName=img>


<!-- 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/110.0.0.0 Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 7

Link to the challenge:

Hi there and welcome to the forum!

You’ve messed up your p element a little, as the comment has somehow ended up inside it, rather than on the line above.
An img element is self-closing, so all you need is a single img tag. This looks just like an opening p tag but it’s img instead of p.
I would reset the step to fix your code and then just add a single img tag. You will add to this in the next steps.

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