Defines an embedded object. Use this element to add multimedia to
your XHTML page. This element allows you to specify the data and parameters for
objects inserted into HTML documents, and the code that can be used to
display/manipulate that data.
Differences Between HTML and XHTML
NONE
Browser Support
The tag is somewhat supported in all major browsers.
The object element was supposed to be a very important addition to W3C's HTML
4.0 standard. However, it is not completely supported by all browsers.
The object support depends on the object type. The object element was
designed to show many different medias (like images, ActiveX, PDF, Flash, or
HTML and text files). Unfortunately, some browsers use different code to load
the same object type.
Luckily, the object element provides a solution. If the object element does
not display properly, the code between the <object> and </object> tags will be
executed. This allows allows you to have several nested object elements (one for
each browser).
Note: If a <param> element is between the <object> and </object>, it is
considered a part of the object, and not an alternate code to execute.
Tips and Notes
Note: An object element can appear inside the head or the body
element. The text between the <object> and </object> is the
alternate text, for browsers that do not support this tag. The <param>
tags define run-time settings for the object.
Tip: For images use the <img> tag instead of the <object>
tag.
W3Schools provides material for training only. We do not warrant the correctness of its contents.
The risk from using it lies entirely with the user.
While using this site, you agree to have read and accepted our
terms of use and
privacy policy.