Learn HTML by Building a Cat Photo App - Step 7

Tell us what’s happening:
Describe your issue in detail here.
I’m having trouble with where the omg description goes and what I open and close it with in brackets, thank you so much for helping me

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more cat photos.</p>
    <h1>img</h2>
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15

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

Link to the challenge:

okay so the instructions say:

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

So the question has 2 parts.

  • add an img element
  • below the p element

1st - do you see where the p element is? It is the one that starts with <p> and ends with </p>

Once you’ve identified the location of the p element, just add a line directly below it
Assuming you know how to add a new line and write an <img> element. But just in case you don’t:

Unlike the p element which has a left-side (opening) and a right-side (closing) to it, the img element does not. That is it looks like the opening of p element but with the letters img inside instead of p (so <img>). It doesn’t have a closing </>.
So they just want you to add a line as requested with the img tag.

ps. I don’t like the way the exercise is written, so I understand why you are unsure what to do. Hopefully I have explained enough.

I’m still confused how do I write ingredients under the p? Please help I don’t want to give up

You don’t need “ingredients “ for this step, you just need an image element.
So just add a new line that has the image element in it. I described in my earlier response how to write an image element. Please review.

HI Joyce2,
Thanks for the info provided, because I was tiring my hair out over this - we are asked " Add an img element below the p element. At this point, no image will show up in the browser." the answer you have provided has an opening TAG and a closing Tag yet they claim its a self closing TAG yeah am still confused! I submitted

which is slightly different from yours and we are both right

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