MDN self-hosted library · e01.org

hreflang

The hreflang attribute indicates the human language of the resource linked by an SVG a element. You can use this attribute with the following SVG elements:

The hreflang attribute indicates the human language of the resource linked by an SVG a element. You can use this attribute with the following SVG elements:

  • a

Example

<svg viewBox="0 0 150 20" xmlns="http://www.w3.org/2000/svg">
  <a href="https://example.com" hreflang="en">
    <text x="5" y="15">Website</text>
  </a>
</svg>

300

Specifications

Browser compatibility

See also

  • href