HTML and CSS Quick Reference

Structure Tags

<!--...-->

Creates a comment

<html>...</html>

Encloses the entire HTML document

<head>...</head>

Encloses the head of the HTML document

<meta />

Provides general information about the document

<style>...</style>

Style information

<script>...</script>

Scripting language

<noscript>...</noscript>

Alternative content when scripting is not supported

<title>...</title>

The title of the document

<body>...</body>

Encloses the body (text and tags) of the HTML document

Headings

<h1>...</h1>

Heading level 1

<h2>...</h2>

Heading level 2

<h3>...</h3>

Heading level 3

<h4>...</h4>

Heading level 4

<h5>...</h5>

Heading level 5

<h6>...</h6> ...

Get Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.