Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1607 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

10 tips to improve your links

Thread title: 10 tips to improve your links
Closed Thread    
    Thread tools Search this thread Display Modes  
08-05-2006, 10:35 PM
#1
Mickoes is offline Mickoes
Status: Member
Join date: Jan 2006
Location: Quebec / Canada
Expertise:
Software:
 
Posts: 466
iTrader: 0 / 0%
 

Mickoes is on a distinguished road

Send a message via MSN to Mickoes

  Old  10 tips to improve your links

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 &amp; )

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.

08-05-2006, 10:52 PM
#2
NectorVectors is offline NectorVectors
Status: I'm new around here
Join date: Jun 2006
Location:
Expertise:
Software:
 
Posts: 20
iTrader: 0 / 0%
 

NectorVectors is on a distinguished road

  Old

Looks good, thanks for the tips!

08-05-2006, 11:06 PM
#3
Jeff Andersen is offline Jeff Andersen
Status: Superstar
Join date: Apr 2005
Location:
Expertise:
Software:
 
Posts: 4,449
iTrader: 10 / 100%
 

Jeff Andersen is on a distinguished road

  Old

Target isn't strict valid is it not?

08-06-2006, 01:24 AM
#4
Mickoes is offline Mickoes
Status: Member
Join date: Jan 2006
Location: Quebec / Canada
Expertise:
Software:
 
Posts: 466
iTrader: 0 / 0%
 

Mickoes is on a distinguished road

Send a message via MSN to Mickoes

  Old

Originally Posted by Jeff Andersen
Target isn't strict valid is it not?
No, for this purpose use this instead

Code:
<a href='http://www.yoursite.com' onclick="window.open(this.href,'_blank');return false;">
Mike

08-09-2006, 10:52 PM
#5
tonieg is offline tonieg
Status: I'm new around here
Join date: Aug 2006
Location:
Expertise:
Software:
 
Posts: 5
iTrader: 0 / 0%
 

tonieg is on a distinguished road

  Old

Looks very good, thanks for the tips!

08-10-2006, 02:44 AM
#6
Mickoes is offline Mickoes
Status: Member
Join date: Jan 2006
Location: Quebec / Canada
Expertise:
Software:
 
Posts: 466
iTrader: 0 / 0%
 

Mickoes is on a distinguished road

Send a message via MSN to Mickoes

  Old

Originally Posted by tonieg
Looks very good, thanks for the tips!
You are welcome, glad you liked

08-10-2006, 05:13 AM
#7
Julian is offline Julian
Status: Simply to simplify
Join date: Apr 2005
Location: Foxton, Manawatu, New Zealand
Expertise:
Software:
 
Posts: 5,572
iTrader: 0 / 0%
 

Julian is on a distinguished road

  Old

Using links to open pages in new browser windows creates poor accessibility and usability.

08-12-2006, 04:46 PM
#8
RusselDesign is offline RusselDesign
Status: I'm new around here
Join date: Aug 2006
Location: Philippines
Expertise:
Software:
 
Posts: 13
iTrader: 0 / 0%
 

RusselDesign is on a distinguished road

  Old

thanks for this tips...

08-31-2006, 01:23 PM
#9
dimi is offline dimi
Status: Junior Member
Join date: May 2006
Location:
Expertise:
Software:
 
Posts: 42
iTrader: 0 / 0%
 

dimi is on a distinguished road

  Old

may be is good practice to add title="some title" to the links

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed