|
|
|
home > design
tips > web site design >
graphic image HTML
HTML code for graphic images
Graphic designers who do not specialize in HTML coding and web site design
do not know how to code web graphics (GIFs and JPEGs) properly for web
page download time and online promotion. This page summarizes the main
points of coding a web graphic image.
Here is a sample of the HTML code for a dollar sign web graphic image:
<IMG SRC="images/dollar.gif" WIDTH="31"
HEIGHT="44" ALT="Dollar sign" VSPACE="2" HSPACE="2"
BORDER="0">
Here is the dollar sign web graphic:

-
WIDTH / HEIGHT: These tags are your graphic image's dimensions,
measured in pixels. Using the WIDTH and HEIGHT attributes in your
IMG SRC tag preserves the layout of your web pages. Also, web pages
using the WIDTH and HEIGHT attributes in their IMG SRC tags download
faster than pages not using these attributes.
-
ALT: Stands for the alternative text attribute. Alternative
text must also be enclosed in quotation marks.
In the event that your visitors want to view text (by turning off
the "Auto Load Images" option in their browser) to increase a site's
download time, in the place of the graphic image will appear the alternative
text. The same text will appear if your visitors are using a text-only
browser.
This attribute is often overlooked by online promotion specialists.
Some search engines index alternative text, thus making your graphic
images another place to strategically place keywords. Also, if you
are using Explorer as your browser, when you position your cursor
over a graphic image, Explorer will display the alt-attribute message
in a little box next to the cursor (similar to pop-ups). This gives
you an opportunity to add to the delivery of your site's marketing
message.
- BORDER: Newbies commonly overlook this attribute. If you are
using your graphic image to link to another web page, such as a navigational
button, you should set the BORDER to equal zero or else your browser
will wrap a border around your image. The color of the border will be
the same colors used in your text hyperlinks.
For example, here is the same graphic image with the BORDER attribute
removed. The first dollar sign image on this web page is also set to
link to our tips page, but the BORDER attribute is set to zero. You
can tell if a graphic image is a hyperlink if you put your cursor over
the image and look at the bottom of your browser's screen. If the graphic
image is linked to another web page, the URL will appear at the bottom
of your browser's screen.
The HTML code shown on this page for graphic images should be the foundation
of what most of your image tags should look like.

If you have any specific questions about our web site design tips, or
if you would like permission to republish this design tip on your web
site or newsletter, please use our contact form
or email us at info@grantasticdesigns.com.

design services | gallery
| design tips | faqs
design glossaries | about
us | links | request
a quotation
site map | search
| contact us | back to
home
|
 |
Related web site design tips:
|
 |