After the standard language and document definitions, the <svg> element appears. The <svg> element defines the SVG document, and can specify, among other things, the user coordinate system, and various CSS unit specifiers. The line <svg xml:space="preserve" width="3in" height="2in" viewBox="0 0 300 200"> specifies: 1) that whitespace within text elements will be preserved, 2) the "intrinsic" width and height of the SVG document particularly important for specifying print output size, and 3) the "bounding box" for the elements of the graphic. In the following example, the SVG file is establishing the boundaries of the image, by stating that in a rectangular space, the upper lefthand x, y coordinates are to be set as 0, 0 and the width and height of the viewing area are 300 and 200.
The "viewBox" attribute defines the 2D space for the enclosed element. By making the bounding box area smaller, the image can be "cropped" or "pre-zoomed." If the above numbers were changed to 100 75 100 50, the image would look like this: