The SVG core attributes are all the common attributes that can be specified on any SVG element.
id
lang
Participates in defining the language of the element, the language that non-editable elements are written in or the language that editable elements should be written in. The tag contains one single entry value in the format defined in the Tags for Identifying Languages (BCP47) IETF document.
SVG 2 introduce the new lang
attributes. If both lang
and xml:lang
attribute are used, xml:lang
has priority over lang
.
Value: Any valid language ID; Animatable: No
tabindex
xml:base
xml:lang
It is a universal attribute allowed in all XML dialects to mark up the natural human language that an element contains. It's almost identical in usage to HTML's lang, but in conforming XML 1.0 documents, it does not allow the use of a null attribute value (xml:lang=""
) to indicate an unknown language. Instead, use xml:lang="und"
.
SVG 2 introduce the new lang
attributes. If both lang
and xml:lang
attribute are used, xml:lang
has priority over lang
.
Value: Any valid language ID; Animatable: No
xml:space
Deprecated since SVG 2
SVG supports the standard XML attribute xml:space
to specify the handling of white space characters within a given <text>
element's character data.
Note: Instead of using the xml:space
attribute you should use the white-space
CSS property.
Value: default
| preserve
; Animatable: No
Desktop | ||||||
---|---|---|---|---|---|---|
id |
Yes | 12 | Yes | Yes | Yes | Yes |
lang |
? | ? | ? | ? | ? | ? |
tabindex |
Yes | 12 | 51 | Yes | Yes | Yes |
xml:base | ? | ? | ? | ? | ? | ? |
xml:lang | ? | ? | ? | ? | ? | ? |
xml:space | ? | ? | 3 | ? | ? | ? |
Mobile | ||||||
---|---|---|---|---|---|---|
id |
Yes | Yes | Yes | Yes | Yes | Yes |
lang |
? | ? | ? | ? | ? | ? |
tabindex |
Yes | Yes | 51 | Yes | Yes | Yes |
xml:base | ? | ? | ? | ? | ? | ? |
xml:lang | ? | ? | ? | ? | ? | ? |
xml:space | ? | ? | 4 | ? | ? | ? |
© 2005–2020 Mozilla and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/Core