Sunday, December 30, 2018

An image as a link

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>

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

Internal Javascripts

Internal Javascripts :    The script code can be written directly into the HTML document. script code is placed in header of the docume...