The main element should have two paragraph elements as children?

The main element should have two paragraph elements as children?
0

#1

Need Some Help

I have an issue of one of these tests where I need to make the

element as a child of the element. Problem is I don’t know how to make this into a child element for main. Could someone help?

https://gyazo.com/dc6e2e9de6105154bbb9bf504f4011a9 Screenshot link to my code since I don’t know how to share it properly


#2

In HTML and CSS, if you nest an element into another element, it become’s its child. For eg.

In the above, “body” is a child of “html”.
Hope this helps.


#3

Thanks. It helped I made a bad mistake on the organization of it.


#4

i am having the same problem. can you please explain how you found a solution? i am stucked here


#5

will you be willing to put me through this course via a IM please…


#6

you can instant message the FCC team and learners (like me) from here:

hope this helps.


#7

thanks… hope you are doing ok


#8

I M struck with same problem


#9

Your screenshot is not working


#10

When referring to a child element, it simply refers to being nested, or placed inside of the element it is referencing.

Example:

<html>
   <body>
       <main> 
           <p>Some text here</p>
           <p>Some more text here</p>
       </main>
   </body>
</html>

So because the <p> elements are inside of the <main> elements opening tag (<main>) and closing tag </main> the <p> elements become child elements of the <main>. Making the <main> element the parent to both <p> elements. Because both <p> elements belong to the parent element of <main>, it would make them sibling elements.

If you would like more clarification feel free to ask!