Warning:
This wiki has been archived and is now read-only.
SVGElements/svg
From HTML Wiki
<svg>
The <svg> element defines a SVG document fragment.
Point
- 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
Examples
Example A
<?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="5cm" height="4cm" version="1.1" xmlns="http://www.w3.org/2000/svg"> <rect x="0.5cm" y="0.5cm" width="2cm" height="1cm"/> </svg>
SVG Reference
The SVG1.1 specification defines the <svg> element in 5.2.1 The svg element.