A view is a defined way to view the image, like a zoom level or a detail view.

Usage context

Permitted contentAny number of the following elements, in any order:
Descriptive elements


Global attributes

Specific attributes



<svg width="600" height="200" viewBox="0 0 600 200"
    <radialGradient id="gradient">
      <stop offset="0%" stop-color="#8cffa0" />
      <stop offset="100%" stop-color="#8ca0ff" />

  <circle r="50" cx="180" cy="50" style="fill:url(#gradient)"/>

  <view id="halfSizeView" viewBox="0 0 1200 400"/>
  <view id="normalSizeView" viewBox="0 0 600 200"/>
  <view id="doubleSizeView" viewBox="0 0 300 100"/>

  <a xlink:href="#halfSizeView">
    <text x="5" y="20" font-size="20">half size</text>
  <a xlink:href="#normalSizeView">
    <text x="5" y="40" font-size="20">normal size</text>
  <a xlink:href="#doubleSizeView">
    <text x="5" y="60" font-size="20">double size</text>


DOM Interface

This element implements the SVGViewElement interface.


Specification Status Comment
Scalable Vector Graphics (SVG) 2
The definition of '<view>' in that specification.
Candidate Recommendation  
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of '<view>' in that specification.
Recommendation Initial definition

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) (Yes) 15.0 (15.0) No support (Yes) ?
Feature Android Edge Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support ? (Yes) 15.0 (15.0) ? ? ?

Document Tags and Contributors

 Contributors to this page: mattwojo, Sebastianz, s-light, kscarfone, Jeremie, Manuel_Strehl
 Last updated by: mattwojo,