Home | Top | Free Ajax Editor | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.


HREFLANG Attribute | hreflang Property

Sets or retrieves the language code of the object .

Syntax

HTML Scripting
< ELEMENT HREFLANG = sLang ... >
object . hreflang ( v ) [ = sLang ]

Possible Values

sLang String that specifies or receives the language code.

The property is read/write. The property has no default value.

Remarks

You must set the value of this property before you can retrieve it.

Language codes identify natural languages that are spoken, written, or otherwise used for the communication of information among people, and are defined and explained in Tags for the Identification of Languages (RFC1766) . Computer languages are explicitly excluded from language codes.

Example

In the a element in the following example, the HREFLANG attribute specifies the language code of the U.S. version of English.

<A href="/" HREFLANG ="en-US">anchor text</A>

Standards Information

This property is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .

Applies To

[ Object Name ] Platform Version
Win32:
 
A , LINK
Home | Top | Free Ajax Editor | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.