What are parent elements and child elements in HTML and CSS?

Hi, I just want to know what are parents and childs in HTML.
I think it’s in the HTML courses but I’ve learn HTML form another site, and I don’t want to start over.

2 Likes

Sorry if i don’t posted this in the correct category. I’m new.

1 Like
<body>
   <div></div>
</body>

body is the parent element of div, div is a child of body. HTML has a hierarchy structure.

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.