Introduction to HTML 5 elements problem

I DONT UNDERSTAND CREATING A MAIN

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>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched-->



<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>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched-->

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36 OPR/76.0.4017.177

Challenge: Introduction to HTML5 Elements

Link to the challenge:

Yoy should nest the 2 <p> elements in a <main> tag

Howdy!

Well, the lesson introduces you to the HTML5 elements.

The main tag is one of the tags we can use for ordinate better the content on the website. So it doesn’t do anything like putting a video, create text or something, is a tag for you and the browser (this is called semantic markup, helps SEO, so you better learn more about that. The main tag is one of the semantic markup tags and on FCC you’ll try them).

So, your code will be like this:

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

So, your main two paragraphs are united in a non-ambiguous way.

Have a good day, hope to helped you :slight_smile:

There is a tip in the editor for inserting code into your messages. All you have to do is click on the open and close </> tag button located at the top of the editor menu bar. Then insert code inside .

 <p id="insert">Exemple</p>

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 it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

1 Like

I saw it later! Thank you for everything :slight_smile:

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