Tuesday, April 27, 2010

Creating Image Links In HTML, How To Make Image Links In HTML

Including an Image In a Link


Beside text, you can also include an inline image inside a hypertext link, which causes the image to display a blue border, indicating that it is a hypertext link that you or your user can click and activate.

Example:

P> a href=”sub.html”> IMG SCR=”FLOWERS.GIF”> Both the image and the text is a link” /a>

Controlling the Border Around an Image Link

The default width of the border around an image link is 2 pixels. The IMG tag’s BRODER attribute allows you to specify a custom width for the broder.

Example:

P> a href=”sub.html”>

IMG SCR=”FLOWERS.GIF”> BRODER=”10”> The border has been increased to 10 pixels. /a>

0 comments:

 

blogger templates | M