HTML CHEAT SHEET
HTML (Hypertext Markup Language) has come a long way since Tim
Berners-Lee invented it back in 1991. Today HTML5 is the standard version and it's supported by all modern web browsers. Our HTML cheat sheet gives you a full list of all the HTML elements, including descriptions, code examples and live previews. Simply scroll down to browse all HTML tags alphabetically or browse tags by their category.
del element label element script element a element details element legend section abbr element dfn element element element address dialog element li element select element element div element link element small element area element dl element main element source article element dt element map element element aside element em element mark element span element audio element embed menu element strong element b element element meta element style element base element 䀠eldset meter element sub element bdi element element nav element summary bdo element 䀠gcaption noscript element blockquote element element sup element element 䀠gure element object element table element body element footer element ol element tbody element br element form element optgroup td element button h1 to h6 element textarea element element option element element canvas head element output tfoot element element header element th element caption element p element thead element element hgroup param element time element cite element element pre element title element code element hr element progress tr element col element html element element track element colgroup i element q element ul element element iframe element rp element var element data element img element rt element video element datalist input element ruby element wbr element element ins element s element dd element kbd element samp element del element label element script element details element legend section LIST OF HTML ELEMENTS BҮ CATEGORҮ
An HTML element (or tag) is an individual component of an HTML document. Here below is a full list of HTML elements listed by category. Elements Basic HTML Content Table HTML Images & Elements Grouping Elements Multimedia Metadata HTML Form HTML HTML HTML Elements Elements Elements Elements Text Level Content Global HTML Content Semantic Embedding Attributes Sectioning HTML HTML New Tags in HTML Elements Elements HTML5 Elements Content Table HTML Images &
HTML TAG
Speci䀠es an html document. The HTML element (or HTML root element) represents the root of an HTML document. All other elements must be descendants of this element. Since the element is the 䀠rst in a document other than comments, it is called the root element. Although this tag can be implied, or not required, with HTML, it is required to be opened and closed in XHTML.
Attributes (modi䀠ers) xmlns + global attributes
Code example
... ...
Back to categories BASE TAG
Speci䀠es URL which non-absolute URLs are relative to. The HTML
Attributes (modi䀠ers) href | target (_self | _blank | _parent | _top) + global attributes
Code example
HEAD TAG
First element of the HTML document. Collection of metadata for the Document. The HTML
element provides general information (metadata) about the document, including its title and links to its scripts and style sheets.Attributes (modi䀠ers) Global attributes
Code example
LINK TAG
Other resources related to the document. The HTML element speci䀠es relationships between the current document and an external resource. Possible uses for this element include de䀠ning a relational framework for navigation. This Element is most used to link to style sheets.
Attributes (modi䀠ers) Attributes (modi䀠ers) href | rel | media | hre†ဠang | type | sizes | crossorigin | integrity + global attributes
Code example
META TAG
Document metadata that can't be expressed with other elements. The HTML element represents any metadata information that cannot be represented by one of the other HTML meta-related elements (
Back to categories
GLOBAL ATTRIBUTES
Here below is a list of attributes supported by all HTML5 tags
Attribute Description Values
Speci䀠es a keyboard shortcut to accesskey character access an element
Speci䀠es a classname for an
class element (used to specify a class classname in a style sheet)
Speci䀠es if the user is allowed contenteditable true | false to edit the content or not Speci䀠es the context menu for contextmenu menu_id an element
Speci䀠es the text direction for dir ltr | rtl the content in an element
Speci䀠es whether or not a user true | false | draggable is allowed to drag an element auto
Speci䀠es what happens when copy | move | dropzone dragged items/data is dropped link in the element
Speci䀠es that the element is
hidden not relevant. Hidden elements hidden are not displayed
Speci䀠es a unique id for an id id element
Speci䀠es a language code for lang language_code the content in an element.
Speci䀠es if the element must
spellcheck have its spelling and grammar true | false checked
Speci䀠es an inline style for an style style_de䀠nition element
Speci䀠es the tab order of an tabindex number element
Speci䀠es extra information title text about an element
Back to categories
NEW TAGS IN HTML5
Here below is a list of the new elements introduced in HTML5.
Tag Description
For bi-directional text formatting
<䀠gcaption> Speci䀠es caption for the 䀠gure element.
Speci䀠es a group of media content, and their <䀠gure> caption
Speci䀠es a group of introductory or navigational
Speci䀠es the main content area of an HTML
Speci䀠es marked text
Speci䀠es a command that a user can invoke from a
Used for the bene䀠t of browsers that don't support
Speci䀠es the ruby text component of a ruby
Speci䀠es a ruby annotation (used in East Asian typography)
Speci䀠es a summary / caption for the element
Back to categories
Thanks to https://developer.mozilla.org/en-US/docs/Web/HTML for providing us with some of the de䀠nitions and code examples.