An image as a link:-
<html>
<body>
<h1>Image Links</h1>
<p>The image is a link. Click on it.</p>
<a href="part.asp">
<img src="bad.gif" alt="HTML studio" style="width:32px;height:32px;border:0">
</a>
<p>We have added "border:0" to prevent IE9 (and earlier) from displaying a border around the image.</p>
</body>
</html>
<html>
<body>
<h1>Image Links</h1>
<p>The image is a link. Click on it.</p>
<a href="part.asp">
<img src="bad.gif" alt="HTML studio" style="width:32px;height:32px;border:0">
</a>
<p>We have added "border:0" to prevent IE9 (and earlier) from displaying a border around the image.</p>
</body>
</html>
OUTPUT:-
- We have added "border:0" to prevent IE9 (and earlier) from displaying a border around the image.
- It is common to use images as links.
No comments:
Post a Comment