HTML (HyperText Markup Language) is the standard markup language for creating web pages and web applications, serving as the foundation of all content on the World Wide Web. Developed by Tim Berners-Lee in the early 1990s, HTML structures documents through elements (tags) that define everything from headings and paragraphs to forms and multimedia. While HTML provides the skeleton of web content, it works alongside CSS for presentation and JavaScript for behavior. Understanding HTML's semantic elements, attributes, and best practices is crucial: properly structured HTML improves accessibility (screen readers can navigate content meaningfully), SEO (search engines index semantic markup more effectively), and maintainability. The HTML Living Standard continues to evolve, with features like the Popover API, the <search> element, and native exclusive accordions reaching full browser support in 2024–2025.
What This Cheat Sheet Covers
This topic spans 24 focused tables and 260 indexed concepts. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
Table 1: Document Structure
Every HTML page is built on the same skeleton, and these are its bones — the doctype that switches the browser into standards mode, the <html> root, and the split between <head> (metadata the user never sees) and <body> (everything they do). Get this scaffolding right and the rest of your markup has somewhere to live.
| Element | Example | Description |
|---|---|---|
| • Declaration that defines document as HTML5 • must be the first line to trigger standards mode. | |
<html lang="en"> | • Root element containing all other elements • lang attribute specifies document language. | |
<head> <meta charset="UTF-8"></head> | Container for metadata — includes title, scripts, stylesheets, and other non-visible elements. | |
<body> <h1>Hello</h1></body> | Main content container — all visible content goes inside body. | |
<title>Page Title</title> | • Document title displayed in browser tab • crucial for SEO and bookmarks. |