# How to include an embedded object in HTML?

HTMLWeb DevelopmentFront End Technology

To include an embedded object, use the <object> tag. The HTML <object> tag is used to embed multimedia in an HTML document. The <param> tag is also used along with this tag to define various parameters.

The HTML <object> tag supports the following additional attributes −

Attribute
Value
Description
Align
left
right
top
bottom
Defines visual alignment of the object
Archive
URL
A space separated list of URL's to archives.
Border
pixels
Specifies border width around the object
Classid
Class ID
Defines a class ID value as set in the Windows Registry or a URL.
Codebase
URL
Specifies the path where object code is located.
Codetype
mime type
The internet media type of the code referred to by the classid attribute.
Data
URL
Specifies the URL for Object data.
Declare
declare
Defines that the object should only be declared, not created or instantiated until needed.
Height
pixels
Specifies the hight of the object.
Hspace
pixels
Specifies the horizontal space around the object.
Name
object
name
Specifies a unique name for the object
Standby
text
Type
mime type
Defines the MIME type of data specified in the data attribute.
Usemap
URL
Specifies a URL of a client-side image map to be used with the object
Vspace
pixels
Specifies the vertical space around the object.
Width
pixels
Specifies the width of the object.

## Example

You can try to run the following code to implement <object> tag in HTML −

<!DOCTYPE html>
<html>
<title>HTML object Tag</title>
<body>
<object data = "/html/test.jpg" type = "text/html" width = "300" height = "200">
alt : <a href = "/html/test.htm">test.jpg</a>
</object>
</body>
</html>
Published on 13-Mar-2018 18:13:00