W3C home > Mailing lists > Public > www-svg@w3.org > May 2000

RE: How can I display SVG from HTML od XML docs ?

From: Alan Clark <aclark@selectica.com>
Date: Fri, 5 May 2000 13:38:23 -0700
To: <www-svg@w3.org>
Message-ID: <000801bfb6d1$dbc0f7e0$4e02000a@selectica.com>
I believe that the only way that it can currently be done is to use either
an <embed> or <object> tag.  This is essentially how you leverage Plug-ins
within an HTML page.

I am looking for a solution that would enable me to place the <svg> content
inline with the HTML.  Is this possible??

A very simple example of how to leverage the <embed> tag follows:

this is a test

<p><embed name="simplegroups" width="200" height="200"


Notice that all <svg> content is maintained in a seperate file.  The content

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN"

<svg width="200px" height="200px">
  <desc>Two groups, each of two rectangles

  <g id="OBJECT1" style="fill:cyan">
    <rect x="0" y="0" width="50" height="50" />
    <rect x="50" y="50" width="50" height="50" />

  <g id="OBJECT2" style="fill:blue">
    <rect x="100" y="100" width="50" height="50" />
    <rect x="150" y="150" width="50" height="50" />

Alan Clark

-----Original Message-----
From: www-svg-request@w3.org [mailto:www-svg-request@w3.org]On Behalf Of
Sent: Monday, May 05, 2059 1:24 PM
To: www-svg@w3.org
Subject: How can I display SVG from HTML od XML docs ?

Please help me,

It has to be simple, but I recently started with XML and SVG and I can view
SVG in my browser, but when I try to open it in a HTML document with the
<IMG SRC"bla.svg"> it can't display the picture.

Thank you,

Randy Hak
Received on Friday, 5 May 2000 16:38:45 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:48 UTC