what are child and parent elements code example
Example: What are parent and child elements
<body>
<div></div>
</body>
In this example, body is the parent element of div, and div
is the child element of body.
<body>
<div></div>
</body>
In this example, body is the parent element of div, and div
is the child element of body.