Home

HTML - Links


Links Explained

links in html web pages are created using anchor tag along with href attribute. The links can be absolute link or relative link.

links to to navigate within a web page can be done using an anchor tag with naming location.

top of the page as defined by naming location attribute, see example below

Absolute/Relative links Code

<a href = "http://webtml.com/"> webtml home absolute link </a>
<br/>
<a href = "/"> webtml home relative link</a>

Changing link color Code

Link to named location in a web page

<a name="top">top of the page</a>
<br/>

<a href="#top">goto top of the page.</a>
<br/>
<a href="#bot">goto bottom of the page.</a>
<br/>

<a name="bot">bottom of the page</a>

Relative links Code