faqts : Computers : Programming : Languages : Html

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

10 of 20 people (50%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

HTML: Picture: Clickable: Create: How to: How to create a clickable image?

Jan 25th, 2005 11:14
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 05 January 2005 - 05:48 pm --------------------

HTML: Picture: Clickable: Create: How to: How to create a clickable 
image?

---

Method: Using the anchor tag '<A>'


in general:

--- cut here: begin --------------------------------------------------

<A
  HREF="<your url>"
>
 <IMG
   SRC="<your picture>"
 >
 </IMG>
</A>

--- cut here: end ----------------------------------------------------

---
---

e.g.

<!-------------------------------------------------------------------->
<HTML>
<!-------------------------------------------------------------------->
<BODY>
<!-------------------------------------------------------------------->
<A
  HREF="http://www.knud.info"
>
<!-------------------------------------------------------------------->
<IMG
  SRC="c:\temp\photoknud.gif"
  HEIGHT="100"
  WIDTH="100"
>
<!-------------------------------------------------------------------->
</IMG>
<!-------------------------------------------------------------------->
</A>
<!-------------------------------------------------------------------->
</BODY>
<!-------------------------------------------------------------------->
</HTML>
<!-------------------------------------------------------------------->

---
---

Internet: see also:

---

JavaScript: Image: Clickable: Link: Overview: Can you give an overview 
of links?
http://www.faqts.com/knowledge_base/view.phtml/aid/33571/fid/122

----------------------------------------------------------------------