The main element should have two paragraph elements as children?

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

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

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.

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

1 Like

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

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

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

hope this helps.

thanks… hope you are doing ok

I M struck with same problem

Your screenshot is not working

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!

2 Likes

how to make child element? i had tried all possible trick i had. help me

Had the exact same problem, and after hours of tinkering found that the problem simply is that you need to start the main tag and the top of the first paragraph under you <h2>heading, and end the tag at the bottom of your second paragraph

1 Like

Thanks was about to give up.Seems like a very important lesson