HTML Document Structure
Every HTML document follows a standard structure. Understanding this is fundamental to writing correct HTML.
Required Parts
<!DOCTYPE html>— Declares the document as HTML5<html>— Root element of the page<head>— Meta-information (not visible on page)<body>— Everything visible on the page
The <head> Element
The <head> section holds metadata:
<title>— Browser tab title<meta charset="UTF-8">— Character encoding<meta name="viewport" ...>— Mobile responsiveness<link>— Links to CSS files