%Language% Attributes
= Index DOT Html by Brian Wilson [bloo@blooberry.com] =

Main Index | Element Tree | Element Index | HTML Support History


What are the Language Attributes?
These attributes facilitate the rendering of documents that use multiple languages or character sets - especially bi-directional language situations.

Language Attributes
Dir
2 | 3 | 3.2 | 4 | IE5B2 | M | N | O
Required? No
Description:
This attribute is used to indicate the directionality of the flow of the content for the current element. This becomes most helpful in bi-directional language scenarios where intrinsic dimension may be ambiguous. On block elements, this attribute indicates the base directionality of the text in the block. For inline elements this attribute starts a new embedding level for direction-dependent content. If this attribute is omitted for an inline element, a new embedding level is not created.
Values: ltr | rtl
Lang
2 | 3 | 3.2 | 4 | IE4 | M | N | O
Required? No
Description:
This attribute is used to specify the language of the enclosed content. This property can be useful in several ways - it can be used to ensure proper display of language-specific character usage (such as quotes or decimal points), for speech synthesis, search engine content classification or clarification of ambiguous character usage.

This attribute takes as its value a string that identifies a language system used for communication (with the exception of computer languages.) The syntax and registry of HTML language tags is identical to the system specified in RFC 1766. A language tag is composed of one or more parts: A primary language tag and a possibly empty series of subtags:
   language-tag = primary-tag *( "-" subtag )
   primary-tag = 1*8ALPHA
   subtag = 1*8ALPHA
Language tags are case-insensitive and spaces are not allowed. The registering of language tags is administered by the Internet Assigned Numbers Authority (IANA). Example language tags include:
   en
   en-US
   x-pig-latin
The LANG attribute overrides any language value specified by any parent elements of the current element. If no value is specified at any of these levels, the language inheritance mechanism goes up to the HTTP protocol header 'Content-Language.' If this is also not specified, a default may be determined from the user's browser settings or some other criteria.
Values:
Valid RFC-1766 values representing a hierarchy of language tokens.
Language
2 | 3 | 3.2 | 4 | IE4 | M | N | O
Required? No
Description:
This attribute is used to specify the current scripting language in use for an element. 'JScript' and 'javascript' both refer to Javascript engines. 'Vbs' and 'Vbscript' both refer to Vbscript engines. 'XML' refers to an embedded XML document/fragment.
Values:
JScript [DEFAULT] | javascript | vbs | vbscript | XML

Boring Copyright Stuff...