IT. Expert System.

HTML

object


Tag Description

The object tag is used to include objects such as images, audio, videos, Java applets, ActiveX, PDF, and Flash.

This tag has the form:

<object archive="URL"
  border="{ number | percentage }"
  classid="class ID"
  codebase="URL"
  codetype="MIME_type"
  data="URL"
  height="{ number | percentage }"
  type="MIME_type"
  width="{ number | percentage }">
  text
</object>

HTML5 and HTML4.01 Differences

Some HTML 4.01 attributes are not supported in HTML5.

The "form" attribute is new in HTML5.

In HTML5, objects can be used and submitted in forms.

In HTML5, objects can no longer appear inside the <head> element of a document.

Attributes

Attribute Value Description
align left
right
top
bottom
Defines the text alignment around the object
HTML4: deprecated in html4.01
HTML5: not supported in html5
archive URL A space separated list of URL's to archives. The archives contains resources relevant to the object
HTML4: supported in html4.01
HTML5: not supported in html5
border pixels Defines a border around the object
HTML4: deprecated in html4.01
HTML5: not supported in html5
classid class_ID Defines a class ID value as set in the Windows Registry or a URL
HTML4: supported in html4.01
HTML5: not supported in html5
codebase URL Defines where to find the code for the object
HTML4: supported in html4.01
HTML5: not supported in html5
codetype MIME_type The internet media type of the code referred to by the classid attribute
HTML4: supported in html4.01
HTML5: not supported in html5
data URL Defines a URL that refers to the object's data
declare declare Defines that the object should only be declared, not created or instantiated until needed
HTML4: supported in html4.01
HTML5: not supported in html5
formHTML5 form_id Specifies one or more forms the object belongs to
height pixels Defines the height of the object
hspace pixels Defines the horizontal spacing around the object
HTML4: deprecated in html4.01
HTML5: not supported in html5
name name Defines the name for an object (to use in scripts)
standby text Defines a text to display while the object is loading
HTML4: supported in html4.01
HTML5: not supported in html5
type media_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 Defines the vertical spacing around the object
HTML4: deprecated in html4.01
HTML5: not supported in html5
width pixels Specifies the MIME type of the linked document

Global Attributes

This tag also supports the HTML Global Attributes.

Event Attributes

This tag also supports the HTML Event Attributes.

Examples

The following example shows the basic use of this tag:

<object codebase="http://www.xyzzy.com/applet.class" classid="java:program.start" codetype="application/java-vm" height="50" width="50"> <param name="options" value="xyzzy" />
  Browser does not support Java
</object>

Browser Support

Chrome Firefox IE Safari Opera

Doctype Declaration Support

The following table lists the doctype declarations this element may appear in:

HTML4.01 / XHTML1.0 XHTML 1.1 HTML 5
Traditional Strict Frameset

Miscellaneous Information

Defined In: HTML4
Empty Tag: No


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 604 / 158692043. Delta: 0.02176 с