Tell us what’s happening:
Describe your issue in detail here.
Your code so far
<html>
<body>
<main>
<!-- User Editable Region -->
<h1>CatPhotoApp</h1>
<section>
<section>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</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>
</section>
</section>
<!-- 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/108.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 17
Link to the challenge:
1 Like
Please Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!
1 Like
I am having problems with how to nest my section
1 Like
Are you supposed to nest the section?
It is time to add a new section. Add a second section
element below the existing section
element.
This looks like it shouldn’t be nested to me.
1 Like
i have a problem with that step
1 Like
I know that. Your problem is that you should not be nesting, but you said that you are trying to nest your elements.
Do you know the difference between nesting and putting one element below another?
Nested:
<p> test text <a> test link </a></p>
One below the other:
<p> test text </p>
<a> test link </a>
1 Like
Tell us what’s happening:
Describe your issue in detail here.
Your code so far
<html>
<body>
<main>
<!-- User Editable Region -->
<h1>CatPhotoApp</h1>
<section>
<section>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</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>
</section>
</section>
<!-- 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/108.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 17
Link to the challenge:
1 Like
I have kept the section below the other section element but i still won’t pass
1 Like
This is still nested . One section element is completely inside of the other section element.
An element has three parts - the opening tag, the contents, the closing tag.
When you nest one element into another, the opening tag, the contents, and closing tag of the second element come in between the opening and closing tags of the first element.
To put one element after another, the opening tag of the second element must come after the closing tag of the first element.
1 Like
system
Closed
July 7, 2023, 9:50pm
11
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.