<html>
Root element that wraps the entire HTML document.
<head>
Container for metadata (not displayed on page):
<body>
Holds all visible content: text, images, UI components, etc.
<meta>
Placed inside <head>
. Provide metadata for browsers and search engines.
Name | Purpose | Example |
---|---|---|
charset |
Sets character encoding (usually UTF-8) | <meta charset="UTF-8"> |
viewport |
Enables responsive scaling | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
description |
Page summary for SEO | <meta name="description" content="..."> |
author |
Specifies the page author | <meta name="author" content="Merrick Cai"> |
robots |
Controls indexing/crawling | <meta name="robots" content="index, follow"> |