Can I embed HTML into an HTML5 SVG fragment? -


html5 supports <svg> tag, allowing embed svg html.

digging little deeper, can nest html inside <svg> fragment? example, i'd put css'ed <table> in part of svg graphics.

i made small test , chrome12 didn't html <p> inside <svg>. there technique make work (such maybe html container tag?)?

yes, <foreignobject> element, see this question examples.

alternatively, if have html5 document can use css positioning , z-index make parts of html visible want laid out on top of svg. if don't need nest html inside svg fragment. give consistent behaviour across browsers in experience.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -