HTML and CSS Reference
In-Depth Information
Format graphics
1.
Add the
alt
(alternative text) attribute to the
<img>
tag:
<img src=”graphics/chessie.gif” align=”left”
alt=”Chesapeake Bay Retriever”
>
Alt text
“Alt” text allows visually-impaired people to know what a graphic
represents. Alt text also allows search engines to index visual
content.
2.
Add the
vspace
(vertical space) and
hspace
(horizontal space)
attributes as well:
<img src=”graphics/chessie.gif” align=”left”
alt=”Chesapeake Bay Retriever”
vspace=”4”
hspace=”12”
>
Tip:
The
“4”
and
“12
”
in these attributes refer to pixels on the
computer screen: 4 pixels vertical space and 12 pixels horizontal
space, respectively.