HTML and CSS Reference
In-Depth Information
Image presentation in general is very browser specific. Images may be
ignored by nongraphical browsers. Browsers operating in a constrained
environment may modify the image size or complexity. And users, par-
ticularly those with slow network connections, may choose to defer im-
age loading altogether. Accordingly, you should make sure your docu-
ments make sense and are useful even if the images are completely re-
moved.
The HTML version of the <img> tag has no end tag. With XHTML, either
use </img> immediately following the <img> tag and its attributes, or
make the last character in the tag the end-tag slash mark: <img sr-
c="kumquat.gif" /> , for example.
5.2.6.1. The src attribute
The src attribute for the <img> tag is required (unless you use dynsrc
with Internet Explorer-based movies; see section 5.2.7.1 ). Its value is
the image file's URL, either absolute or relative to the document ref-
erencing the image. To unclutter their document storage, authors typ-
ically collect image files into a separate folder, which they often name
something like "pics" or "images." [ Referencing Documents: The URL,
6.2 ]
For example, this HTML fragment places an image of a famous kumquat
packing plant into the narrative text (see Figure 5-8 ):
 
Search WWH ::




Custom Search