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


#1

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

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


#3
<body>
   <div></div>
</body>

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


#4

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