IMG

 [tree logo] '><br>
<img src=
SUL & AIR Conventions

Only GIF images shall be used as inline images in SUL/AIR documents. JPEG and other formats shall be included by means of hypertext links using A.

With the exception of images that are strictly decorative, all inline images shall have descriptive text included in the ALT attribute, to aid in machine renderings for the visually impaired
           ----

The IMG element allows an image to be inserted "inline" within an HTML document. The purpose is to allow pictures to be included within a document and presented with the text, as opposed to having hypertext links that retrieve and display images in a separate viewing window. The main distinction between an "inline" image and an image linked with the A element, is that IMG cause the graphic element to be inserted automatically, without any action on the part of the user.

Although it is not a restriction of the HTML 2.0 specification, it is important to keep in mind that, as of this writing, on the GIF format is widely supported for inline images. A few browsers have also added support for the JPEG format, but if you want your document to be "universally" readable, you must limit your inline images to GIFS. This restriction will undoubtedly fall away eventually. If you want to include an in image that is any other format, it must be handled as a hypertext link, using

Example

<p>
<img src="http://www-sul.stanford.edu:8000/icons/sullogo2.gif" alt=' [Logo] '>
<p>

which is rendered  [Logo]

Note that IMG does notimply a line break either before or after. If you want adjacent text to be displayed on the line following (or preceding) the image, you must insert BR tags as needed. Markup like the following may cause wordwrap on narrow displays and not on wide displays

Stanford University Libraries & Academic Information Resources

so if you are creating a 'logo' type image, and are especially concerned about the visual effect, you might consider inserting a BR element after the IMG tag.


Content

  • EMPTY

Tag Minimization
Open Tag: REQUIRED
Close Tag: OPTIONAL
See
ATTRIBUTES
Empty CONTENT DECLARATION


Parent Elements


Top Element List
All Element List
Tree
html-s DTD