Form
<object> ... </object>
Attributes
attribute |
default |
description |
id |
none |
specifies the unique ID |
class |
none |
specifies the style sheet class |
style |
none |
specifies the style sheet |
classid |
none |
specifies the class id |
codebase |
none |
specifies the base URL for code |
codetype |
none |
specifies the MIME type of the code specified by the classid attribute |
data |
none |
specifies the URL where the data is located |
type |
none |
specifies the MIME type of the data specified by the data attribute |
width |
none |
specifies the width |
height |
none |
specifies the height |
Explanation
The object tag specifies various objects. This tag allows you to render images, run applets or display a movie for embedding them in pages. In addition, you can nest <object> tags within each other. If the outermost data can be displayed, the <object> tag described inside it will be ignored. If the outermost data cannot be displayed, the data inside it will be displayed. The processing will be handled like this until data can be found.
Use the
<param> tag to transmit data to the object specified by the <object> tag.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=shift_jis">
<title>Sample</title>
</head>
<body>
<h1>Sample</h1>
<object data="photo.jpg" type="image/jpeg">
It's the photo of autumn leaves.
</object>
</body>
</html>