Introduction to HTML5 Elements help a newbie

Tell us what’s happening:

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 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 UBrowser/7.0.185.1002 Safari/537.36.

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

right now you have only one element as child of main (only one element nested in main)

to be child of/nested in means that the parent element has the opening tag before the opening tag of the child element and the closing tag of the parent element is after the closing tag of the child element

if you have more than one child element, you need to have the opening tag of the parent element before the opening tag of the first child element and the closing tag of the parent element after the closing tag of the last child element

1 Like

Did not receive this same error using Firefox or Chrome browser. But for this exercise, it requires that there are opening and closing main tags around both paragraphs.

1 Like