contents.gifindex.gifprev1.gifnext1.gif

pueblo00000000.gif <embed>

The Embed element allows you to use external plugins to display data types that Pueblo doesn’t support directly. (If the user doesn’t have the correct plugins on their system, then the data will not be displayed.)

Attributes

ALIGN

The ALIGN attribute can have one of the following values: left, right, top, texttop, middle, absmiddle, baseline, bottom, and absbottom. The values left and right are somewhat different from the others in that these two values create a floating images that the text then wraps around.

align=left will float the image down and over to the left margin (into the next available space there), and subsequent text will wrap around the right hand side of that image.

align=right will align the image aligns with the right margin, and the text wraps around the left.

align=top aligns itself with the top of the tallest item in the line.

align=texttop aligns itself with the top of the tallest text in the line (this is usually but not always the same as align=top).

align=middle aligns the baseline of the current line with the middle of the image.

align=absmiddle aligns the middle of the current line with the middle of the image.

align=baseline aligns the bottom of the image with the baseline of the current line.

align=bottom aligns the bottom of the image with the baseline of the current line.

align=absbottom aligns the bottom of the image with the bottom of the current line.

HREF

The value of the SRC attribute is the URL of the document to be embedded; only images can be embedded, not HTML text. (Web Tracker allows the HREF attribute as a synonym for the SRC attribute.) Its syntax is the same as that of the HREF attribute of the <A> element. Image elements are allowed within anchors.

BORDER

This lets the document author control the thickness of the border around an image displayed.

Warning: Setting ‘border=0’ on images that are also part of anchors may confuse your users as they are used to a colored border indicating an image is an anchor.

The default border thickness is 2.

WIDTH
HEIGHT

The WIDTH and HEIGHT attributes were added to <img> mainly to speed up display of the document. If the author specifies these, the viewer of their document will not have to wait for the image to be loaded over the network and its size calculated.

VSPACE
HSPACE

For the floating images it is likely that the author does not want them pressing up against the text wrapped around the image. VSPACE controls the vertical space above and below the image, while HSPACE controls the horizontal space to the left and right of the image.

Other attributes

All attributes not listed above will be passed to the plugin for interpretation. Some plugins accept other attributes which may be used to change the behavior of the plugin.

Examples

The following example loads a RealAudio document into a display 200 pixels wide and 35 pixels high. Since the CONTROLS attribute is not understood by the EMBED element, it is passed to the RealAudio plugin.

<embed href="tchai.rpm" WIDTH=200 height=35 controls="ControlPanel">