Linking
Home → Tutorials → Linking
Linking is a necessity for web designers that's easy to master. Links can be applied to various different elements, but this tutorial will only show a few.
The basic code for the link (in the same window & with displayed text) is:
<a href="URL HERE">Link text here</a>
If you'd like any link to open in a new window, add target="_blank" or target="new" after the URL.
! Important - remember that the full URL, including "http://", must be included in the link in order for it to work. The same goes for images.
To link with an image, you'd use the follow code:
<a href="URL HERE"><img src="IMG URL HERE"></a>
If you'd like to get rid of that border, insert border="0" after the image URL.
All link tags must come before whatever's being linked and must be closed after whatever's being linked in order for it to work properly.
That's pretty much everything you need to know about linking. Feel free to experiment around, and have fun adding links to your page.
If you have any questions, feel free to contact me here.
