Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

version

This article needs a technical review. How you can help.

The version attribute is used to indicate what specification a SVG document conforms to. It is only allowed on the root <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.

Usage context

Categories None
Value <number>
Animatable No
Normative document SVG 1.1 (2nd Edition): version attribute

Document Tags and Contributors

 Contributors to this page: PushpitaPikuDey, Tigt
 Last updated by: PushpitaPikuDey,