Defining an SVG in code
preprocessor -> markup -> browser interpretes markups
sgv-standalone –> XML parser
svg-inline –> html parser
simple inline SVG
*
SVG element well defined ! a blue rectange starting at coordinates 20, 20
Zo ziet het er uit in een browserwindow, wordpress en svg heeft plugin nodig vermoed ik.
Adding red, green and yellow lights with
Standalone SVG
- save file with .svg extension
- The starting tag = declaration of SVG namespace.
xmlns=”http://www.w3.org/2000.SVG” - Height & width attributes are important setting default size for the graphic.
- No requirement for head to put metadata. However is best at top.
- One metadataelement to include (not working without here ?) is title tag.
- title tag is more flexible than html equivalent, adding titles to individual graphics -> tooltip