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>

Click to view the demo

The code above generates the following result.

Use image a link in HTML and CSS