### 32.6 Specifying HTML image attributes

You can specify attributes for the <img> tag in either of the following ways:

Configuration-file settings

PI markers.

Configuration-file settings

To specify <img> tag attributes in the configuration file (for example):

    [GraphAttr]
    ; Graphic file name (with or without extension) = desired attributes
    ch01f853.gif= usemap="#schematic" border="0"

To eliminate borders from all graphics:

    [GraphAttr]
    *= border="0"

PI markers

You can define a PI marker that has a name beginning with Graph and ending with the name of a valid <img> tag attribute (see §38.3 Adding attributes with PI markers). The content of the marker becomes the value of the attribute for the next image in your document. The PI marker overrides any configuration-file setting for the same attribute for that image. See §42.2 Overriding settings with PI markers or macros.

See also:

§32.8 Scaling images for HTML

§34.2 Applying WAI markup to images

Previous Topic: 32.5.4 Eliminating space above or below graphics in table cells

Next Topic: 32.7 Providing (or omitting) alternate text for images

Parent Topic: 32. Including graphics in HTML

Sibling Topics:

32.1 Locating graphics files for HTML

32.2 Specifying options for HTML graphics

32.3 Omitting graphics from HTML output

32.4 Selecting and modifying graphics

32.5 Positioning graphics in HTML output

32.7 Providing (or omitting) alternate text for images

32.8 Scaling images for HTML

32.9 Creating image maps for HTML

32.10 Supplying a background image or watermark

Table of Contents • Index