Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :
03/24/2008
Times viewed :
5495
The <img> Tag (XHTML Reference)
Introduction
The only and main purpose of the <img> tag is to display
and embed images and graphics. Recommend extensions for images for the web are
GIF, JPEF and PNG. If you are using graphics in your web pages, you should take
care of the size, though there isn’t any limitation. However you should know
that larger images take more time and smaller images takes less time. If you
choose to embed a large image then you can be sure that a dialup user will not
see your page very fast – it will take time and the user will look for another
website. Therefore make always the right choice of size of the image. If
necessary you can set the height and the width of the image
Example
…
<img
src="http://www.topxml.com/images/topxml_site.gif" alt="Go the front-page
of TopXML.com"></img>
…
Output
Attributes
Name:
Description:
align
Aligns the image with one of the following options:
top
middle
bottom
left
center
right
alt
This is alternative text in the case that the image can’t
be shown.
border
Creates a border around the image. You have to specify the
thickness in pixel or percent.
height
Specifies the height of the image in pixel or percent.
hspace
Specifies the horizontal distance between the image and
the text.
ismap
This is an empty attribute and is used for a server-side
handling. That means that whenever the user clicks on the image (for example
through a link) then the coordinates are being send to the server through the
URL like used in get methods.
longdesc
Here you set a URL which contains a description of the
frame contents.
name
Specifies a name for the image.
src
Specifies the source of the file.
usemap
This attribute can be used to apply an image map to the
image. For more details see the map tag.
vspace
Defines the vertical distance from the image to the text
on the top and bottom.