Including SVG into Web Pages

  • XHTML, HTML5:

    • using namespaces

  • HTML5

    • directly using the element SVG

  • Always

    • using the img element

  • SVG advantages:

    • combination of SVG and RDF for example, or well commented SVG (svg element desc) - better accessibility for visually impaired users

    • open standard

    • easily to process.

  • SVG in web pages disadvantage:

    • missing support at some web browsers - need of plug-ins

    • incorrect/incomplete/missing namespace support at some web browsers - need to include as an external file using a img element.