Show Menu
Cheatography

HTML Reference Cheat Sheet (DRAFT) by

HTML Reference | w3schools.com

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Basic Tags

<!D­OCT­YPE>
Defines the document type
<!D­OCTYPE html>
<ht­ml>
Defines an HTML document
<ht­ml>...</h­tml>
<ti­tle>
Defines a title for the document
<ti­tle>...</t­itl­e>
<bo­dy>
Defines the document's body
<bo­dy>...</b­ody>
<h1> to <h6>
Defines HTML headings
<h1­>Ti­tle­</h­1>
<p>
Defines a paragraph
<p>­Tex­t</­p>
<br>
Inserts a single line break
<br>
<hr>
Defines a thematic change in the content
<hr>
<!-- -->
Defines a comment
<!-- comment -->

Formatting

<ab­br>
Defines an abbrev­iation
<abbr title=­"­Exa­mpl­e">E­x</­abb­r>
<ad­dre­ss>
Defines contact inform­ation
<b>
Defines bold text
<bd­i>
Isolates a part of text that might be formmatted in a different direction
<bd­i>h­ref­s</­bdi>
<bo­d>
Overrides the current text direction
<bl­ock­quo­te>
Defines a section that is quoted
<ci­te>
Defines the title of a work
<co­de>
Defines a piece of computer code
<de­l>
Defines text that has been deleted
<df­n>
Defines a definition term
<em>
Defines emphasized text
<i>
Defines a part of text in an alternate voice
<in­s>
Defines a text that has been inserted into a document
<kb­d>
Defines keyboard input
<ma­rk>
Defines marked text
<me­ter>
Defines a scalar measur­ement
<pr­e>
Defines prefor­matted text
<pr­ogr­ess>
Represents the progress of a task
<q>
Defines a short quotation
<rp>
Defines what to show in browsers that don't support ruby
<rt>
Defines an explan­ation of characters
<ru­by>
Defines a ruby annotation
<s>
Defines text that is no longer correct
<sa­mp>
Defines sample output from computer program
<sm­all>
Defines smaller text
<st­ron­g>
Defines important text
<su­b>
Defines subscr­ipted text
<su­p>
Defines supers­cripted text
<ti­me>
Defines a date/time
<u>
Defines text that shoud be stylis­tically diferent
<va­r>
Defines a variable
<wb­r>
Defines a possible line-break