Structure - HTML relies on several elements to provide structure to a document (as opposed to structuring the text within) as well as provide information that is used by the browser or search engines.
| Tag | Attribute | Description |
|---|---|---|
| BDO | core | Bi-directional algorithm element used to selectively turn off the default text direction |
| lang="..." | The language of the document | |
| dir="..." | The text direction (ltr, rtl). Mandatory | |
| BODY | core, events | Contains the document content. Can only be one BODY per document. Must follow HEAD. Can be replaced by a FRAMESET element |
| background="..." | URL for background image | |
| bgcolor="..." | Sets background color | |
| text-"..." | Text color | |
| link="..." | Link color | |
| vlink="..." | Visited link color | |
| alink="..." | Active link color | |
| onLoad | Event triggered when document loads | |
| onUnload | Event triggered when document unloads | |
| !-- ...-- (Comments) | Used to insert notes or scripts that are not displayed by the browser. Can encompass any number of characters and any number of lines | |
| DIV | core, events | The division element is used to add structure to a block of text. Cannot be used within a P element |
| align="..." | Controls alignment (left, center, right, justify) | |
| !DOCTYPE | Version information appears on the first line of an HTML document. This is a declaration rather than an element | |
| H1 to H6 | core, events | Headings H1 to H6 are used in a document in a hierarchical fashion. H1 is the largest heading and H6 is the smallest |
| align="..." | Controls alignment (left, center, right, justify) | |
| HEAD | This is the document header. The document header contains other elements which provide information to users and search engines. One HEAD per document and must follow the opening HTML tag | |
| profile="..." | URL specifying location of META data | |
| HR | core, events | Draws a horizontal line accross a web page. If contained within a table field will draw a horizontal line across a table cell |
| align="..." | Controls alignment (left, center, right, justify) | |
| noshade="..." | Displays rule as a solid color | |
| size="..." | Size of rule | |
| width="..." | Width of rule | |
| HTML | The HTML element contains the entire document. Version information is duplicated in !DOCTYPE | |
| version="..." | URL of document type definition specifying HTML version used to create document | |
| META | Provides information about the document | |
| http-equiv="..." | HTTP response header name | |
| name="..." | Name of meta information | |
| content="..." | Content of meta information | |
| scheme="..." | Assigns a scheme to interpret the meta data | |
| SPAN | core, events | Organizes a document by defining a span of text |
| TITLE | The name of a web page. This tag must be located in the HEAD element and appears on the browser window title bar | |