HTML5 Introduction

Tell us what’s happening:*
Whats wrong?

Your code so far


<h2>CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

<main>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/introduction-to-html5-elements

Please answer these. It’s hard to help when we don’t know the issue.

i imagine the failing tests say you need two children elements of main.
main has only one child, the paragraph inside it

1 Like

The (main) is before the two paragraphs.

You need to wrap the paragraphs with an opening and closing main tag.
like this

<main>
<p>Kitty Ipsum...</p>
<p>Purr jump...</p>
</main>

The second paragraph for another <p></p> tag is given in the challenge.

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

Thank you for understanding.

2 Likes

I will keep that in mind next time :slight_smile: