LanguageCode Attribute Type


 

The LanguageCode Attribute Type is a data type defined by XHTML Modularisation 1.1, declared in the DTD as XML 1.0 type CDATA.
Reference: *W3C - XHTML Modularisation 1.1 - Attribute Types

Specific Attributes with Type LanguageCode

  1. hreflang:
    This is declared on the elements: link, a

Common Attributes with Type LanguageCode

From the I18N Attribute Collection:
  1. xml:lang

Attribute Value for Type LanguageCode

An RFC3066 language code, e.g. "en" (Generic English), "en-GB" (British English), "en-US" (US English), "fr" (French), "he" (Hebrew)

Ref: *RFC3066

The language code consists of a primary subtag (e.g. "en" for English) followed by zero or more optional subtags. The subtags are separated by hyphens.

See the *W3C article on Language Tags in HTML and XML for more information.

Also available is a comprehensive list of *Codes for the Representation of Names of Languages. This list gives primary subtag codes only. (Note: if a two-letter code exists it should be used in preference to the three-letter code - see *RFC3066, section 2.3, point 2)

Note: the RFC3066 language tag specification has been superseded by *RFC4646 and *RFC4647. All related subtags may be found at the *IANA Language Subtag Registry.


Page Footer & Copyright

Copyright © Sally Maughan 2005-2009 (Page last updated on 01 Oct 2009)

*Valid XHTML 1.1 - hosted by *Openstrike

Content based on the W3C Working Draft: *XHTML 1.1 and Recommendation: *XHTML Modularisation 1.1.

W3C, XHTML, XML, HTML, CSS and MathML are *Trademarks of the W3C (*MIT, *ERCIM, *Keio) with which the site's author has no connection.


Up, Next & Previous Links

Your Location

Home > XHTML 1.1 Home > Data Types in XHTML 1.1 > Attribute Types (XHTML 1.1) > LanguageCode Attribute Type