Wrong coding here. Still confused with main tags and closing tags

Wrong coding here. Still confused with main tags and closing tags
0

#1

Tell us what’s happening:
What am i doing wrong? lol

Your code so far


<h2>CatPhotoApp</h2>
<section>
<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>
<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>
</section>

Your browser information:

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

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


#2

It passes for me! Can you describe what tests you are failing?


#3

Try to use the below code


#4

I’m failing at these.
Your code should have one main element.
The main element should have two paragraph elements as children.
The opening main tag should come before the first paragraph tag.
The closing main tag should come after the second closing paragraph tag.


#5

Enclose all your content around <main> tag and you shall pass!


#6
<h2>CatPhotoApp</h2> 
<section><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>
<p>Purr jump eat the grass rip the couch scratched sunbathe</p></section>

It’s still not working


#7

I’m trying to enclose both paragraphs 1 and 2 with main tags but it’s not working. It’s so frustrating.


#8

I said to enclose this

<main>
<h2>CatPhotoApp</h2>
<section>
<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>
<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>
</section>
</main>

#9

LOL. I thought the tag was referencing other html tags like section and header. So i took it as “main” means these kinds of HTML tags such as section, header… etc… I totally misunderstood the sentence. I should’ve know that the “main” is an actual tag of itself lol. Thank you for your help.


#10

Whenever you want to post code on forum use three backticks and then your code followed by three backticks again.
You can also use the preformattted text button.


#11

what are “backticks”?


#12

I’ve edited your post for readability. 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 to make easier to read.

Note: Backticks are not single quotes.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.