Monday 9 May 2011

HTML -- link syntax


HTML Link Syntax
It looks like this:

Example
<a href="url">Link text</a>
<a href="http://www.ideasinweb.blogspot.com">www.ideasinweb.blogspot.com/</a>
<a href="http://www.ideasinweb.blogspot.com" target="_blank">www.ideasinweb.blogspot.com</a>

HTML Links - The name Attribute
The name attribute specifies the name of an anchor.

Example
A named anchor inside an HTML document:
<a name="tips">ideasinweb.blogspot</a>

Create a link to the "Useful Tips Section" inside the same document:
<a href="#tips">ideasinweb.blogspot</a>

Or, create a link to the "Useful Tips Section" from another page:
<a href="http://www.ideasinweb.blogspot.com/html_links.htm#tips">ideasinweb.blogspot</a>

No comments:

Post a Comment