-
Notifications
You must be signed in to change notification settings - Fork 22.5k
/
index.md
57 lines (45 loc) · 1.23 KB
/
index.md
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
title: version
slug: Web/SVG/Attribute/version
page-type: svg-attribute
status:
- deprecated
browser-compat: svg.elements.svg.version
---
{{SVGRef}}{{Deprecated_Header}}
The **`version`** attribute is used to indicate what specification a SVG document conforms to. It is only allowed on the root {{SVGElement("svg")}} element. It is purely advisory and has no influence on rendering or processing.
While it is specified to accept any number, the only two valid choices are currently `1.0` and `1.1`.
You can use this attribute with the following SVG elements:
- {{SVGElement("svg")}}
```html
<svg version="1.1" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<rect x="10" y="10" width="80" height="80" />
</svg>
```
## Usage notes
<table class="properties">
<tbody>
<tr>
<th scope="row">Value</th>
<td>
<code
><a href="/en-US/docs/Web/SVG/Content_type#number"
><number></a
></code
>
</td>
</tr>
<tr>
<th scope="row">Default value</th>
<td><em>None</em></td>
</tr>
<tr>
<th scope="row">Animatable</th>
<td>No</td>
</tr>
</tbody>
</table>
## Specifications
{{Specifications}}
## Browser compatibility
{{Compat}}