attribute is one method for referencing an
reference it using the
id attribute). It has historically been used for techniques such as
image swaps for rollovers (which have since largely been replaced using
nameattribute provides a means by which the image may be referenced:
<p><img src="giant-prawn.jpg" alt="The Giant Prawn at Ballina" name="giantprawn"/></p>
This attribute takes as its value any name that the developer chooses, as long as it doesn’t contain spaces or special characters.
It causes no compatibility issues, and has excellent support across all tested browsers.
There are no comments yet.