<a>
A link has two ends -- called anchors -- and a direction.
The link starts at the "source" anchor and points to the "destination" anchor,
which may be any Web resource (e.g., an image, a video clip, a sound bite,
a program, an HTML document, an element within an HTML document, etc.).
Attribute :
href : Link type internal or external and which protocol is used
http
|
link to a another page or another web site
-) ex: <a href="http://anothersite.com">click here</a>
|
mailto
|
link a an email
-) ex1: <a href="mailto:email@site.com"></a> : simple email
-) ex2: <a href="mailto:email@site.com?subject=hello"></a> : email with subject
-) ex3: <a href="mailto:email@site.com?subject=hello&body=body of the message"></a> : email with subject and content
|
ftp
|
link to an ftp server
-) ex: <a href="ftp://the_ftpserver.com"></a>
|
name
|
Internal document link
-) ex1 : <a href="#here">click here</a> : internal link at the same web page
-) ex2 : <a href="other_page.html#there">click there</a> : external page link with a specified position
|
style
|
style sheet of the link
ex: <a href="http://anothersite.com" style="font-family: arial;font-size: 12px; font-weight: bold;">click here</a>
|
target
|
If you have frame you can specify in which frame it will be displayed
values :
_blank : open in a new navigator window
_self : open the link on the same frame
_parent : open the link from window parent
_top : open the link on the same window
ex: <a href="http://anothersite.com" target="_blank" >click here</a>
|
title
|
give a little description of lhe link by opening a tool tip
ex : <a href="http://anothersite.com" title="my favorite link" >click here</a>
|
lang
|
text link language
ex: <a href="http://anothersite.com" lang="en" >click here</a>
|
class
|
define the style of the link, the style must be defined before in the header document
ex: <a href="http://anothersite.com" class="c1" >click here</a>
|
charset
|
define character code
ex: <a href="http://anothersite.com" charset="ISO-8859-1" >click here</a>
|
For complete reference see html reference at W3C
E0..1 E1..1 E2..1 E2..2 E2..3 E2..4 E2..5 E2..6 E2..7 E2..8 E2..9 E2..10 E3..1 E3..2
E3..3 E3..4 E4..1 E5..1 E6..1 E7..1 E8..1 E9..1 EA..1 EB..1 EB..2 EB..3 EB..4 EC..1
EC..2 EC..3 ED..1 ED..2 ED..3 ED..4 ED..5 ED..6 EE..1 EE..2 EE..3 EF..1 EF..2 EF..3
EF..4 EG..1 EG..2 EH..1 EH..2 EI..1 EK..1 EK..2 EK..3 EK..4 EK..5 EK..6 EL..1 EL..2
EL..3 EL..4 EL..5 EL..6 EL..7 EL..8 EL..9 EL..10 EL..11 EL..12 EL..13 EL..14 EL..15 EL..16
EL..17 EL..18 EM..1 EM..2 EM..3 EM..4 EM..5 EM..6 EM..7 EN..1 EN..2 EN..3 EN..4 EP..1
|