What is a child element? | Sololearn: Learn to code for FREE!

+1

What is a child element?

6/18/2019 6:42:51 AM

Mehedi Hasan

2 Answers

New Answer

+3

nice explanation, Jack. here is a demo as supplement : https://code.sololearn.com/WZwQjTQzYrxe/?ref=app

+1

A child element is anything that sits underneath another element but are related. SO for example in HTML, you can have a div which is a container and anything inside the <div> tags will be a child element of the div Example: <div> <p> This is a paragraph inside my div, as i am indented between 2 div tags, i am a child element of the div. </p> </div>