My favorites | Sign in
Project Logo
             
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#summary The a hreflang attribute specifies the language of the target resource of a hyperlink.
#labels about-html,is-html-attribute,from-w3c

You are here: [Welcome Home] > [HTMLReference HTML Reference] > [HTMLElements Elements] > [AElement <a> element] > *hreflang attribute*

== Usage ==

{{{
<a href="http://google.co.jp" hreflang="ja">Google Japan</a>
}}}

== Values ==

== Elements ==

You can use the `hreflang` attribute on the following elements:

* [AElement <a>]
* [AreaElement <area>]
* [LinkElement <link>]

== Browser compatibility ==

[ArticleBrowserCompatibilityLegend Compatibility table legend]

|| *Test* || *IE8* || *IE7* || *IE6* || *FF3* || *FF2* || *Saf3* || *Op9* || *Chrome* ||
|| [http://doctype.googlecode.com/svn/trunk/tests/html/attributes/a-hreflang-reflection-test.html a.hreflang reflects <a hreflang="en">] || Y || Y || Y || Y || Y || Y || Y || Y ||

== Further reading ==

* [http://www.whatwg.org/specs/web-apps/current-work/#hreflang3 The hreflang attribute in HTML 5]
* [http://www.w3.org/TR/html401/struct/links.html#adef-hreflang The hreflang attribute in HTML 4]
* [http://msdn2.microsoft.com/en-us/library/ms533787.aspx The hreflang attribute on MSDN]
* [http://annevankesteren.nl/2004/06/hreflang-and-type Opinion: hreflang and type considered harmful]
Show details Hide details

Change log

r2870 by pilgrim on Sep 19, 2008   Diff
94 bottles of beer on the wall, 94 bottles
of beer.
Go to: 
Project members, sign in to write a code review

Older revisions

r2798 by pilgrim on Sep 11, 2008   Diff
94 bottles of beer on the wall, 94
bottles of beer.
r2785 by pilgrim on Sep 10, 2008   Diff
added test results for Google Chrome
r2720 by pilgrim on Jun 25, 2008   Diff
added breadcrumbs
All revisions of this file

File info

Size: 1334 bytes, 34 lines
Hosted by Google Code