0% found this document useful (0 votes)
16 views

HTML Cheat Sheet

This document provides a cheat sheet of common HTML tags and their purposes. It lists tags for text formatting, computer output, citations and definitions. Some key tags are <p> for paragraphs, <a> for links, <img> for images, <h1> to <h6> for headings, and <div> and <span> for sections and inline elements. Attributes like class, id and style are also explained for adding extra information to tags.

Uploaded by

AdamLehman
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

HTML Cheat Sheet

This document provides a cheat sheet of common HTML tags and their purposes. It lists tags for text formatting, computer output, citations and definitions. Some key tags are <p> for paragraphs, <a> for links, <img> for images, <h1> to <h6> for headings, and <div> and <span> for sections and inline elements. Attributes like class, id and style are also explained for adding extra information to tags.

Uploaded by

AdamLehman
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

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

You might also like