What is main in script

Tell us what’s happening:
What is “main”

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.

Your code so far


<head>
<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.</p>
</head>

Your browser information:

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

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

<main>, it’s not a trick, it’s literally asking you to use the main tag

Hi, anything inside the main element is the most important content of your document. That’s why any HTML document should have only one main tag. Both paragraphs should be inside the main tag.

1 Like