htmlsvg

Designing entire webpages as SVG files


Disclaimer

I realize that given the absurdity of the title, this sounds like a troll. However, it's a genuine question. My background involves OpenGL / x86 assembly. I've recently started learning web programming. I really like SVG + CSS, and was wondering -- why do people not design entire webpages in SVG?

Context

Questions


Solution

  • It is possible; for example you can embed HTML fragments in SVG documents in order to get things like hyperlinks.

    However, there are some significant disadvantages, at least at present:

    Something to consider is that it is possible to embed SVG elements in XHTML and HTML 5, so you get some of the benefits without throwing off browsers/search engines.

    Existing usage

    I've heard of its use for presentations (which are closer to drawings in some respects, so some of the above drawbacks don't apply):