Pages

Ads 468x60px

Wednesday, October 9, 2013

How to create a simple hyperlink.

You might wander how to create a simple link to another document or a link to a position in the same page.This is called a hyperlink.The link can be text or image.

Here is the code for a simple text link.
<a href="url">Link text</a>

You can make a link to a position in the same document by using id.
<a id="top">top</a>
<a href="#top">go back on top</a>


And here is the code for an image link.
<a href="your url">
<img src="yourimage.gif" width="32" height="32"></a>

No comments:

Post a Comment

 

Sample text

Sample Text