Example

A simple <object> tag that open PNLdev.com link:

Laboratory

description & Usage

To define an external resource in a section, we use the <object> tag.

External source means: a web page, audio-visual and video media.

To load an image media in the object tag, they use the <img> tag.

They use the <iframe> tag to load an html document or a web page in the object tag.

<audio> and <video> tags are used to load a video or audio media in the object tag.

Browser compatibility and Support

# Chrome Edge Firefox Safari Opera
<object>

Attributes

Attributes Values Description
data
URL
en
form
form id
en
height
pixels
en
name
text
en
type
media type
en
usemap
#mapname
en
width
pixels
en

Global Attributes

The object tag supports the HTML Global Attributes.

Event Attributes

The object tag supports the HTML Event Attributes.

Default CSS

Most browsers will display the object tag with the following default style: