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.
IMG
ElementAll 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:
PNG:
JPG:
GIF:
OBJECT
ElementSimple nested example (should show the first of the above that User Agent can handle, preceded
by text for each image that was rejected):
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.
type
attribute.
PARAM
ElementThere should be a line below about being text in the object element:
OBJECT
element.
Then, when this anchor is used, the text should be replaced by the
JPEG image.
MAP
and AREA
ElementsThis 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):
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:
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.
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
OBJECT, width=400, height=100
IMG, width=100, height=400
OBJECT, width=100, height=400