Nested Elements in HTML

Nested HTML Elements

Nested HTML Elements

<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:

  1. Learning Photoshop Elements
  2. Family Trees: The quest for a family’s history
  3. Biography of Brian Welker
  4. Child Molester Chester Stiles gets 21 Life Prison Terms
  5. Health Insurance Reform Reality Check

About Featheriver

Born and raised in Oklahoma. Improved in California. Out to pasture in Nevada. Born in 1933, Korean War Vet in USAF. Occupation: Criminal Law and Torts. Retired California Lawyer. Now live in Pahrump, Nye County, Nevada.
This entry was posted in Web Design and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badge