Advertisements

Raphael Goubet wrote:
> Is it possible to insert an SVG graphic directly in an XHTML file (ie,
> not through a reference to an external file, but by directly placing
> the SVG structure within the XHTML structure)?
>
> How can I do it? Do I need to use a specific XHTML tag as a container
> (such as for scripts) or a namespace?

Yes, you can do that, and namespaces are the right way to do that.
> Would a recent browser (such as IE 6 or Mozilla 1.6) properly display
> the XHTML document with the SVG graphic?

IE on Win also has its very own approach to an extension of HTML (not
XHTML) with namespaces where a plugin like Adobe SVG viewer then renders
the elements in the SVG namespace, so with IE/Win and Adobe SVG viewer
you can write HTML with inline SVG.
--

Advertisements

Raphael Goubet <> wrote in message news:<>...
> Hi,
>
> Is it possible to insert an SVG graphic directly in an XHTML file (ie,
> not through a reference to an external file, but by directly placing
> the SVG structure within the XHTML structure)?
>
> How can I do it? Do I need to use a specific XHTML tag as a container
> (such as for scripts) or a namespace?
>
> Would a recent browser (such as IE 6 or Mozilla 1.6) properly display
> the XHTML document with the SVG graphic?
>
> Thanks in advance.
>
> Raphaël

As far as I'm aware, it is not possible to do this yet in the major
browsers, however it is with Amaya. Amaya is W3C's browser/editor.
"The main motivation for developing Amaya was to provide a framework
that can integrate as many W3C technologies as possible." Since XHTML
and SVG are W3C recommendations the browser can view these
technologies. www.w3.org/Amaya

Raphael Goubet wrote:
>Is it possible to insert an SVG graphic directly in an XHTML file (ie,
>not through a reference to an external file, but by directly placing
>the SVG structure within the XHTML structure)?

Raphael Goubet wrote:
>Is it possible to insert an SVG graphic directly in an XHTML file (ie,
>not through a reference to an external file, but by directly placing
>the SVG structure within the XHTML structure)?

Raphael Goubet wrote:
>Is it possible to insert an SVG graphic directly in an XHTML file (ie,
>not through a reference to an external file, but by directly placing
>the SVG structure within the XHTML structure)?

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!