Use image a link in HTML and CSS
Description
The following code shows how to use image a link.
Example
<html>
<body>
<!--from w w w.j a v a 2 s.c o m-->
<a href="http://www.java2s.com">
<img src="http://java2s.com/style/download.png" alt="disk" width="338" height ="79" />
</a>
</body>
</html>
The code above generates the following result.
HTML CSS Tutorial Image
Add alt Attribute to an image in HTML and C...
Add img element and set src, alt, width and...
Adjust Image Sizes in HTML and CSS
Align image vertically along baseline in HT...
Align image vertically to middle in HTML an...
Align image vertically to text-bottom in HT...
Align image vertically to text-top in HTML ...
Align image vertically using the value sub ...
Align image vertically using the value supe...
Create an Image Map with clickable regions ...
Include images in document in HTML and CSS
Position image in relation to containing el...
Set hspace and vspace Attribute for img in ...
Use align attribute to align image to parag...
Add alt Attribute to an image in HTML and C...
Add img element and set src, alt, width and...
Adjust Image Sizes in HTML and CSS
Align image vertically along baseline in HT...
Align image vertically to middle in HTML an...
Align image vertically to text-bottom in HT...
Align image vertically to text-top in HTML ...
Align image vertically using the value sub ...
Align image vertically using the value supe...
Create an Image Map with clickable regions ...
Include images in document in HTML and CSS
Position image in relation to containing el...
Set hspace and vspace Attribute for img in ...
Use align attribute to align image to parag...