This wiki has been archived and is now read-only.


From HTML Wiki
Jump to: navigation, search


The <svg> element defines a SVG document fragment.


  • An SVG document fragment can range from an empty fragment (i.e., no content inside of the 'svg' element), to a very simple SVG document fragment containing a single SVG graphics element such as a 'rect', to a complex, deeply nested collection of container elements and graphics elements.

SVG Attributes


Example A

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
<svg width="5cm" height="4cm" version="1.1"
  <rect x="0.5cm" y="0.5cm" width="2cm" height="1cm"/>

SVG Reference

The SVG1.1 specification defines the <svg> element in 5.2.1 The svg element.