Doctype

From Svg wiki

Here is a list of current valid DOCTYPE declarations for various versions or profiles of SVG:

  • SVG 1.0 - DTD:
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"  "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
  • SVG 1.1 Full - DTD:
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
  • SVG 1.1 Basic - DTD:
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN"  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">
  • SVG 1.1 Tiny - DTD:
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN"  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">

Other Definition Schemas

Note that there is a move away from DOCTYPEs toward W3C Schema and RELAX NG. Some people recommend that you do not use a DOCTYPE declaration in your SVG files since they consider them to cause more problems than they solve.

Beginning with the proposed SVG 1.2, there are RNG schemas for SVG:

Retrieved from "http://wiki.svg.org/Doctype"