0
Why does it say (<head>) has no children?
why does it say (<head>) has no children but, on the line above it says "<head> has one child..."?
3 Answers
+ 5
What are you referring to exactly? Anything between <head> is a child element. If there's nothing there then it's independent.
+ 3
Your mistake is to bad read... it's written:
<head> has one child (<title>) and one parent (<html>);
<title> has one parent (<head>) and no children;
The second line say <title> has one parent and no children, and in parenthesis that <head> is the parent of <title>, not that <head> has no child, on contrary ( implicitly, if <head> is parent of <title>, <head> has at least a child <title> ^^ )
0
I am sorry, in the Javascript DOM section, "what is DOM, section 2, on the example under the image is what I am referring to.