Skip to main content

HTML Cheat Sheet

Quick reference for common HTML tags and document structure.

Document

ItemMeaning
<!DOCTYPE html>HTML5 document mode
<html lang="en">Root element + language
<head>Metadata (title, charset, CSS links)
<body>Visible page content

Text

ItemMeaning
<h1>…</h6>Headings by outline level
<p>Paragraph
<!-- -->Comment (not shown in normal view)
ItemMeaning
<a href="">Hyperlink
<img src="" alt="">Image with accessible text