Full width home advertisement

How To

Science

Post Page Advertisement [Top]


How To Use Image As Link in HTML

Linking <img> is easy. It is almost the same as text linking. Simply replace the text in between the start <a> and </a> tag with the source of the image. 


Example

<a href=“index.html"><img src=“logo.jpg” alt=“logo” /></a>

<!DOCTYPE html>

<html>

<head>

<title>Scholars Image Hyperlink Example</title>

</head>

<body>

<p>Click following link</p>

<a href="http://scholarsglobe.com">

<img src="logo.jpg" alt="logo"/>

</a>


</body>

</html>

Result:

Copy and Paste Code to Notepad and save as index.html and open with any web browser, or use editors like Dreamweaver or Frontpage to see results.

No comments:

Post a Comment

Bottom Ad [Post Page]

| Designed by Colorlib