Specification
Contents
Previous
Next

There are extensive tests for the OBJECT element at http://www.student.oulu.fi/%7esairwas/object-test/ but those are using separate pages.

13.2 Including an Image: The IMG Element

All of the images in this paragraph have alt text and a longdesc attribute, which the User Agent should make available, though access to the alt is only required if the image cannot be shown.
The images below are all from the same picture, but the GIF is dithered down to 256 colors.
TIF: Tagged Image File goes here
PNG: Portable Network Graphics go here
JPG: Joint Photographic Experts Group image goes here
GIF: CompuServe Graphics Interchange Format image goes here

13.3 Generic Inclusion: The OBJECT Element

Simple nested example (should show the first of the above that User Agent can handle, preceded by text for each image that was rejected):
The TIF image has been rejected.
The PNG image has been rejected.
The JPG image has been rejected.
The GIF image has been rejected.
If this line is visible, your browser does not support the OBJECT element.

13.3.1 Rules for rendering objects

If the type attribute is set to a value that the browser cannot handle, it is probably safer to show the contents of the element, rather than the file pointed to by the data attribute.

Some of the tests below have been removed because the FTP server would not let me upload the file required by the tests. If your browser pays attention to the "type" attribute of the OBJECT element, there will be a line of text below instead of a JPG image.
If this line is visible, your browser has rejected the object data based on the type attribute.

13.3.2 Object Initialization: The PARAM Element

The applet below should display the blue-white circle GIF similar to the above, with the text "Parameter Test" above it, possibly in a "Fantasy" font.
If this line is visible, your browser does not have Java support.

13.3.4 Object Declarations and Instantiations

There should be a line below about being text in the object element:
This is text in the OBJECT element.
Then, when this anchor is used, the text should be replaced by the JPEG image.

13.6 Image Maps

13.6.1 Client-side Image Maps:The MAP and AREA Elements

This image uses an imagemap defined below, and should scroll the document so that the appropriate sections is displayed at the top of the viewport (but most of the gray rectangle should not go anywhere, and the images furthest in the background will take precedence, because they're defined first in the map (the 8-point star is symmetrical):
[The object failed to load if you see this text]

1 - this is a PRE for spacing
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

This is the target of the "default" area.

1 - this is a PRE for spacing
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

This is the target of the "rectangle" area.

1 - this is a PRE for spacing
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

This is the target of the "circle" area.

1 - this is a PRE for spacing
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

This is the target of the "polygon" area.

Here's where the map is defined:

Rectangle Area
Circle Area
Polygon Area
[Disabled Rectangle]
Default Area

13.6.2 Server-side Image Maps

When the image below is clicked, this document should be reloaded, but with the coordinates of the point clicked in the form "?x,y" added to the URL.
Blue-White Image

Visual Presentation of Images, Objects, and Applets

13.7.1 Width and Height

The following test all use an image that is normally 200x200. It should be stretched to fit the specified width and height, not clipped or having scroll bars.

IMG, width=400, height=100
Blue-White Image

OBJECT, width=400, height=100
Blue-White Image Object

IMG, width=100, height=400
Blue-White Image

OBJECT, width=100, height=400
Blue-White Image Object

Valid HTML 4.01!