• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 11. Images > SVG in SVG

SVG in SVG

SVG's image element can also reference external SVG files. This support is added to allow SVG files to incorporate other SVG files just as they would another graphic. In the same manner that an SVG document can render with a JPEG file inside, so too can it render an SVG document inside an SVG document.

There is no change in syntax for the image element to support SVG inclusion. Rather, the xlink:href value should point to an SVG document instead of a JPEG or PNG file. The x, y, width, and height attributes still accept the same values and operate in the same manner.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint