Welcome to this first HTML quicktip, today I'll teach you how to modify your links into your forum/website.
What's a link)
<a href=" LINK.PHP "> TEXT </a>
TIP 1)
To insert a link from another directory - root of your forum in this case - add ../ before link.php ( <a href=" ../LINK.PHP "> TEXT </a>
TIP 2)
To avoid W3C errors add amp; after every & letter. (& should be & )
TIP 3)
Add a button as a link ( <a href=" LINK.PHP "> <img src="BUTTON.gif" alt="description" /> </a>
Note : Don't forget to close the IMG tag and to add the alt attribute in order to comply with the W3C rules (if you use the xHTML doctype)
TIP 4)
Avoid caps letter in attribute and tags. They are considered like errors for the W3C (if you use the xHTML doctype)
TIP 5)
Use the target attribute (on the link tag) to specify how the link will open when clicked ( <a href=" ../LINK.PHP " target="_blank"> TEXT </a> )
To make it strict compliant use this instead :
Code:
<a href='http://www.yoursite.com' onclick="window.open(this.href,'_blank');return false;">
TIP 6)
Add style to that link with CSS ( a:link, a:visited {color:red} a:hover, a:focus {color: #DD0000}
Note : You can shorten the style by removing somme characters ( #ffffff can be #fff, #cccccc can be #ccc etc. )
TIP 7)
Choose good names for your links, that may bring you a few more clicks. Make them bold or underline if the link color is almost the same than the font color.
TIP 8)
Choose them carefully and cleverly, they can improve your Pagerank.
TIP 9)
Avoid to use absolute path instead of the relative path (help/index.php instead of
http://yoursite.com/help/index.php )
TIP 10)
Never forget to save your document!
I hope that helped you.
Regards,
Michael (article by me)
---
Thanks to user "arkdm" for his kind comments.