HTML Cheat Sheet A href=link A p= paragraph A img= image
An HTML element is everything from the start tag to the end tag:
Start tag * <p> <a href="default.htm"> <br />
Element content This is a paragraph This is a link
End tag * </p> </a>
* The start tag is often called the opening tag. The end tag is often called the closing tag.
Attribute class id style title
Value classname id style_definition tooltip_text
Description Specifies a classname for an element Specifies a unique id for an element Specifies an inline style for an element Specifies extra information about an element (displayed as a tool tip)
Tag <html> <body> <h1> to <h6> <hr /> <!-->
Description Defines an HTML document Defines the document's body Defines HTML headings Defines a horizontal line Defines a comment
Tag <p> <br />
Description Defines a paragraph Inserts a single line break
HTML Text Formatting Tags
Tag <b> <big> <em> <i> <small> <strong> <sub> <sup> <ins> <del> Description Defines bold text Defines big text Defines emphasized text Defines italic text Defines small text Defines strong text Defines subscripted text Defines superscripted text Defines inserted text Defines deleted text
HTML "Computer Output" Tags
Tag <code> <kbd> <samp> <tt> <var> <pre> Description Defines computer code text Defines keyboard text Defines sample computer code Defines teletype text Defines a variable Defines preformatted text
HTML Citations, Quotations, and Definition Tags
Tag <abbr> <acronym> <address> <bdo> <blockquote> <q> <cite> <dfn> Description Defines an abbreviation Defines an acronym Defines contact information for the author/owner of a document Defines the text direction Defines a long quotation Defines a short quotation Defines a citation Defines a definition term