IMG
The <IMG> element refers to an image or icon via a hyperlink.
HTML user agents may process the value of the ALT attribute as an
alternative to processing the image resource indicated by the SRC
attribute.
- NOTE
- Some HTML user agents can process graphics linked via
anchors, but not <IMG> graphics. If a graphic is essential, it
should be referenced from an
<A> element rather than an <IMG>
element. If the graphic is not essential, then the <IMG> element
is appropriate.
Examples of use:
<IMG SRC="triangle.xbm" ALT="Warning:"> Be sure
to read these instructions.
<a href="http://machine/htbin/imagemap/sample">
<IMG SRC="sample.xbm" ISMAP>
</a>
Content
ATTRIBUTES
Empty CONTENT DECLARATION
- Tag Minimization
-
Open Tag: REQUIRED
Close Tag: OPTIONAL
Parent Elements
- a -- Anchor; source and/or destination of a link
- address -- Address, signature, or byline for document or passage
- b -- Bold text
- blockquote -- Quoted passage
- body -- Document body
- cite -- Name or title of cited work
- code -- Source code phrase
- dd -- Definition of term
- dt -- Term in definition list
- em -- Emphasized phrase
- form -- Fill-out or data-entry form
- h1 -- Heading, level 1
- h2 -- Heading, level 2
- h3 -- Heading, level 3
- h4 -- Heading, level 4
- h5 -- Heading, level 5
- h6 -- Heading, level 6
- i -- Italic text
- kbd -- Keyboard phrase, e.g. user input
- li -- List item
- p -- Paragraph
- samp -- Sample text or characters
- strong -- Strong emphasis
- tt -- Typewriter text
- var -- Variable phrase or substitutable
Top Elements
All Elements
General Entities
Tree
HTML 2.0 DTD