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> |
This is how it will appear in a browser |
View above example output in a new browser window |
Changing link color Code
View above example output in a new browser window |
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> |
This is how it will appear in a browser |
View above example output in a new browser window |
Relative links Code
View above example output in a new browser window |