Webmaster
| |
| <bdo>...</bdo> | |
| The bidirectional algorithm element is used to selectively turn off the default text direction. By default, the direction goes from left-to-right but it can be changed (for instance, to display Hebrew text from right-to-left) | |
| Starting/ending tag | Required/Required |
| Attributes | Attributes lang="...": Document language. dir="...": Text direction (ltr, rtl). |
| Empty | No |
| Notes | The dir attribute is compulsory. |
| <body>...</body> | |
| Contains the document content. | |
| Starting/ending tag | Optional/Optional (HTML); Required/Required (XHTML 1.0). |
| Attributes | Attributes %coreattrs, %i18n,
%events onload="...": Intrinsic event triggered when the document loads. onunload="...": Intrinsic event triggered when the document unloads. |
| Deprecated | DeprecatedThe following attributes are deprecated; these values can now be defined using style sheets. background="...": Background image URL. bgcolor="...": Background colour. text="...": Text colour. link="...": Link colour. vlink="...": Visited link colour. alink="...": Active link colour. |
| Empty | No |
| Notes | There is only one document body and it must follow the page head. The body element can be replaced with a frameset element. |
| Comments <!-- ... --> | |
| Used to insert notes or scripts that are not displayed by the browser. | |
| Starting/ending tag | Required/Required |
| Attributes | AttributesNone |
| Empty | Yes |
| Notes | The comment length is not limited and the end tag does not have to be on the same line as the start tag. |
| <div>...</div> | |
| Contains the document content. | |
| Starting/ending tag | Required/Required |
| Attributes | Attributes %coreattrs, %i18n,
%events |
| Deprecated | DeprecatedThe align attribute is deprecated; alignment is now controlled by style sheets. align="...": Controls alignment (left, center, right, justify). |
| Empty | No |
| Notes | Cannot be used inside a P element. |
| <!DOCTYPE...> | |
| Version information appears on the first line of a HTML document. It is a SGML (Standard Generalized Markup Language) declaration rather than an element. | |
| Starting/ending tag | Required/Required |
| Notes | Optional in HTML documents but required with XHTML 1.0. |
| Example | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <h1>...</h1> ŕ <h6>...</h6> | |
| The six headings (h1 is the uppermost, or the most important) are used to organize information in a hierarchical fashion. | |
| Starting/ending tag | Required/Required |
| Attributes | Attributes %coreattrs, %i18n, %events |
| Deprecated | DeprecatedThe align attribute is deprecated in favour of an alignment set using style sheets. align="...": Controls alignment (left, center, right, justify). |
| Empty | No |
| Notes | In graphical browsers, the size of headings is displayed in relation to their importance, with h1 being the largest and h6 the smallest. |
| Example | <h1>This text is rendered as a heading</h1> |
| <head>...</head> | |
| This element represents the document heading and contains information for users and search engines. | |
| Starting/ending tag | Optional/Optional (HTML) Required/Required (XHTML 1.0). |
| Attributes | Attributes %i18n profile="...":Meta data location URL. |
| Empty | No |
| Notes | A document can only have one heading , which must follow the HTML start tag and precede the body tag. |
| <hr> | |
| Horizontal rules can be used to divide a Web page into several sections. | |
| Starting/ending tag | Required/Illegal |
| Attributes | Attributes %coreattrs, %events |
| Deprecated | Deprecated align="...": Controls alignment (left, center, right, justify). noshade="...": Displays the rule using a plain colour. size="...": Rule size. width="...": Rule width. |
| Empty | Yes |
| Notes | In XHTML 1.0, this tag should be in the form <hr /> to ensure compatibility with older browsers |
| <html>...</html> | |
| The html element contains the entire document. | |
| Starting/ending tag | Optional/Optional (HTML) Required/Required (XHTML 1.0) |
| Attributes | Attributes %i18n |
| Deprecated | Deprecated version="...": URL of the document type definition that specifies the HTML version used to create the document. |
| Empty | No |
| Notes | Version information is duplicated in the <!DOCTYPE...> declaration. Consequently, it is not essential. |
| <meta> | |
| Provides information about the document. | |
| Starting/ending tag | Required/Illegal |
| Attributes | Attributes %i18n http-equiv="...": HTTP response header name. name="...": Name of the meta information. content="...": Content of the meta information. scheme="...": Names a scheme for interpreting the meta data. |
| Empty | Yes |
| Notes | In XHTML 1.0, this tag should be in the form <meta /> to ensure compatibility with older browsers |
| Example | <meta name="Keywords" content="HTML, images, FTP, search engines"> |
| <span>...</span> | |
| Structures the document by defining a span of text. | |
| Starting/ending tag | Required/Required |
| Attributes | Attributes %coreattrs, %i18n, %events |
| Empty | No |
| <title>...</title> | |
| This is the name assigned to the Web page. It is located in the head element and is displayed in the browser window title bar. | |
| Starting/ending tag | Required/Required |
| Attributes | Attributes %i18n |
| Empty | No |
| Notes | Only one title allowed per document. |
| Example | <title>Webmaster - HTML 4.0 reference<title> |
| |