HTML and CSS Reference
Putting one element inside
another is called “nesting”
When we put one element inside another element, we
call that nesting . We say, “the <p> element is nested
inside the <body> element.” At this point, you've
already seen lots of elements nested inside other
elements. You've put a <body> element inside an
<html> element, a <p> element inside a <body>
element, a <q> element inside a <p> element, and
so on. You've also put a <head> element inside the
<html> element, and a <title> element inside the
<head> . That's the way HTML pages get constructed.
The more you learn about HTML, the more
important having this nesting in your brain becomes.
But no worries — before long you'll naturally think
about elements this way.