This is an archive of an inactive wiki and cannot be modified.

Embedding objects in web documents

Different types of objects can be embedded in web documents. For example, this can be achieved in XHTML Basic and XHTML-MP by using <object> element. This means that embedding objects is supported in baseline device.

Anyway, this does not mean much as support for the different media that can be embedded in an object element differs among different web browsers. For example, an SVG image might be embedded and no SVG support might be found in the browser. There is no general solution for this and content adaptation techniques can be used for a refined solution (using Accept header, CC/PP//UAProf, WURFL, ...).

In general, when trying to serve embedded object, always use alternative content which might be useful if the browser cannot support the media you are trying to embed in a document, as shown in the sample code below.

<object type="image/svg+xml" data="spaceship.svg" width="370" height="393">
   <p>A spaceship was tried to be shown here.</p>
   <p class="warning">Your browser <strong>cannot</strong> show SVG documents.</p>
   <p class="warning">You can find it <a href="spaceship.svg">here</a> in PNG format without some of the features of the SVG version. </p>
   <p>Download a plugin for your browser <a href="">here</a> if you are interested in SVG features.</p>


Contributions to this wiki are governed by the W3C policies for Contribution to W3C' wiki on Mobile Web.