Glubase - share your knowledge


All / Computers / Programming / HTML / XHTML





  • View Command

HTML / XHTML Reference

HTML / XHTML html definition

Browser support
IEFFOpSaf
FullFullFullFull

Type: structural elements

Syntax

<html> ... </html>

Description

The HTML part of a html page contains the HTML document. The HTML document is made up by a head followed by a body or frameset.

In XHTML the xlmns attribute is required.

Contains

Head, body or frameset elements.

Attributes

Attribute Description
version = HTML version HTML version, deprecated. Use DOCTYPE instead.
lang: language code The language code of the document. For example "en" for english.
dir

Direction of text.

  • ltr is "left-to-right"
  • rtl is "right-to-left"
xlmns Defines a XML namespace.

Example

<html xmlns="http://www.w3.org/1999/xhtml">  <head>
    ...
  </head>
  <body>
    ...
  </body>
</html>
 

  • Comments

No comments added.