<html> has two nested elements: <head> and <body>. You can call them both children of <html>.
<body> is nested within the <html> element thus is the “child” of <html>.
<head> is also nested within the <html> element is is also a “child” of <html>.
So, both the <head> and <body> elements are the children of <html> i.e., siblings. and <html> is their parent.
<title> is nested within the <head> element and is therefore the child of <head> and the grandchild of <html>.
<p> is nested within the <body> element, therefore the child of <body> and grand child of <html>.
<q> is nested within the <p> element, therefore the child of <p> grandchild of <body> and great grand child of <html>.
Sort of like genealogical ancestral relationships.
Related posts:
