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>
Example
Specifications
Browser compatibility
See also
- href
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
