XHTML Reference
Images and Links
Images
The <img src="" alt="" /> tag is used to place images within your page. These images can be gif images (suitable for small bitmaps with 255 or fewer colours, and also for animated images) or jpeg images (suitable for photos and larger images). png is a newer alternative to gif which provides additional capabilities but is still not supported by most browsers (and doesn't support animation).
The following optional attributes can be specified on a <img> tag:
- height
- ismap="ismap"
- longdesc
- name
- usemap
- width
- core
- international
- event
The following attributes are deprecated but can still be used with the transitional DOCTYPE
- align
- border
- hspace
- vspace
Links and Anchors
The <a href=""> </a> tag pair is used to define parts of your page (whether text or images) as a link to another page (or to elsewhere on the same page). The href value identifies the page or anchor to which the link is attached and to which the user will be transferred if they click on the link.
The <a name="" id="" /> tag identifies an anchor point to which links can transfer. If no anchor is specified then the link will transfer to the top of the page. The name value and id values should be the same (name is deprecated and is not in the XHTML 1.1 specification but is required for compatibility with earlier browsers that do not recognise id). The specification states that the id field can be used as an anchor point on many different tags but earlier browsers only look for it on the <a> tag.
The following optional attributes can be specified on the <a> tag:
- accesskey
- charset
- coords
- hreflang
- rel
- rev
- shape
- tabindex
- type
- core
- international
- event
- onblur
- onfocus
The following attributes are deprecated but can still be used with the transitional DOCTYPE
- target
An <a> tag may not be nested within another <a> tag.
Image Maps
Image maps allow one image to contain multiple links. In this instance the image needs to be defined using the usemap="#mapname" attribute.
The <map id="mapname"> </map> tag pair is used to contain the definitions of various areas of an image each of which is to link to a different place.
The following optional attributes can be specified on the <map> tag:
A number of <area alt="" /> tags are defined within the map to identify which parts of the map link where.
The following optional attributes can be specified on the <area> tag:
- accesskey
- href
- nohref="nohref"
- shape
- tabindex
- core
- international
- onblur
- onfocus
The following attributes are deprecated but can still be used with the transitional DOCTYPE
- target



