EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

hreflang attribute | hreflang property

Sets or retrieves the language code of the object.

Syntax

HTML<element hreflang="p" ... >
JavaScript

p = object.hreflang

Property values

Type: String

the language code.

Standards information

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.

Examples

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


<a href="http://example.microsoft.com/..." hreflang="en-US">anchor text</a>

See also

a
link

 

 

Anzeigen:
© 2014 Microsoft. Alle Rechte vorbehalten.