Dieser Inhalt wurde automatisch aus dem Englischen übersetzt, und kann Fehler enthalten. Erfahre mehr über dieses Experiment.

View in English Always switch to English

version

Deprecated

Avoid using this feature in new projects. SVG 2 omittted some parts of SVG 1.1 to "improv[e] the usability and precision of the language." This feature may be a candidate for removal from web standards or browsers.

Consider using the following features instead: SVG oder @font-face.

Das version-Attribut wird verwendet, um anzugeben, welcher Spezifikation ein SVG-Dokument entspricht. Es ist nur auf dem root <svg>-Element erlaubt. Es ist rein informativ und hat keinen Einfluss auf die Darstellung oder Verarbeitung.

Obwohl es so spezifiziert ist, dass jede Zahl akzeptiert wird, sind derzeit nur 1.0 und 1.1 gültige Optionen.

Sie können dieses Attribut mit den folgenden SVG-Elementen verwenden:

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>