Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
<!-- TODO: Add link to cat photos -->
<p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
<a href="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
<h3>Things cats love:</h3>
<ul><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg" alt="A slice of lasagna on a plate."></ul><img<alt
**Your browser information:**
User Agent is:
Mozilla/5.0 (Linux; Android 8.1.0; SM-P585) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.96.36.199 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 21
Link to the challenge:
I cant get the step 21 in the cat photo . This is my code:
Hi @labeebah.anjola ,
You are supposed to add the
img after the
ul element, which means after the closing
ul tag :
Could you explain why this is how it works?
I had img step/line right after the
When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks.
Your code goes here
You can also use the “preformatted text” tool in the editor (
</> ) to add backticks around text.
Hi, sorry for that. I’m very new at this and didn’t realize how that format would end up looking.
So I was trying to ask why I have to put the image line under the unlisted in order for that to work.
It’s fine, don’t worry about it.
img element should be after the
ul element (the whole
ul element consists of :
- An opening tag
- A closing tag
<!-- Place 1 -->
<!-- Place 2 -->
If you put the
img after the
ul opening tag (Place 1), it would be within the
ul element. Which is wrong and the tests won’t accept it.
But if you place it after the closing tag (Place 2), it would be after the
ul element which is the right way to pass this step.
Great, thank you for explaining!