Search code examples
htmlhrefhreflang

Does the hreflang attr. make sense in <base>?


Does a hreflang attribute make sense in the <base> element? I thought about using this attribute, like:

<base href="example.com" target="_self" hreflang="de">

to let every link (<a> and <link>) inherit the value of hreflang. Is this possible?


Solution

  • The documentation here, mentions that only <a>, <area>, <link> are the tags which make use of this attribute.