HTML Reference

Articles

HTML Element Reference

This page lists all the HTML elements. They are grouped by function to help you find what you have in mind easily. Although this guide is written for those who are newer to coding, we intend it to be useful for anyone.

HTML Global Attributes Reference

Global attributes are attributes common to all HTML elements; they can be used on all elements, though the attributes may have no effect on some elements.

HTML Attribute Reference

Elements in HTML have attributes; these are additional values that configure the elements or adjust their behavior in various ways to meet the criteria the users want.

Link Types

In HTML, the following link types indicate the relationship between two documents, in which one links to the other using an <a>, <area>, or <link> element.

Content Categories

Each HTML element must abide by rules defining what kind of content it can have. These rules are grouped into content models common to several elements.

Block-level Elements

A block-level element occupies the entire space of its parent element (container), thereby creating a "block."

Inline Elements

An inline element occupies only the space bounded by the tags that define the inline element

Heading Elements

Heading elements implement six levels of document headings, <h1> is the most important and <h6> is the least. A heading element briefly describes the topic of the section it introduces.

Using HTML Sections and outlines

The HTML5 specification brings several new elements to web developers allowing them to describe the structure of a web document with standard semantics.

Controlling Spell Checking in HTML Forms

Firefox 2 introduces spell checking support to text areas and text fields in web forms. The user can specify using the about:config interface whether or not spellchecking is enabled and whether to check both text areas and text fields or only text areas.

Focus management in HTML

In the HTML5 working draft, the activeElement DOM attribute and the hasFocus() DOM method gives the programmer the ability to have better control of the interactivity of the page due to the user's actions.

Optimizing Your Pages for Speculative Parsing

The HTML parser in Firefox 4 and later supports speculative parsing off the main thread. It parses ahead while scripts are being downloaded and executed.

Microdata

Microdata is a WHATWG HTML specification used to nest metadata within existing content on web pages. Search engines, web crawlers, and browsers can extract and process microdata from a web page and use it to provide a richer browsing experience for users.

Microformats

MicroFormats, sometimes abbreviated μF, are simple conventions used to embed semantics in HTML and quickly provide an API to be used by search engines, aggregators, and other tools.

Media Formats Supported by the HTML Audio and Video Elements

The <audio> and <video> elements provide support for playing audio and video media without requiring plug-ins.

CORS Enabled Image

The HTML specification introduces a crossorigin attribute for images that, in combination with an appropriate CORS header, allows images defined by the <img> element loaded from foreign origins to be used in canvas as if they were being loaded from the current origin.


HTML Elements

Global Attributes

Attributes

Link Types