HTML Document Structure
A web page is not just random text. It is a carefully structured document tree. We call this the DOM (Document Object Model).
The Doctype
The very first line must be <!DOCTYPE html>. This tells the browser to use modern HTML5 standards. Without it, browsers go into "Quirks Mode" and pages may look strange.
Head vs Body
The <head> is for the machine (browser, Google search bot). It contains the title, scripts, and styles. The <body> is for the human. It contains the headers, paragraphs, and images you actually see.
View Full Transcript+
This transcript details the nested structure of HTML, explaining the roles of the root element, the metadata container (head), and the content container (body).
