The href
attribute defines reference that the link refers to. Basically this is where
the user will be taken if they wish to click this link.
HTML
Code:
Internal - href="#anchorname"
Local - href="../pics/picturefile.jpg"
Global - href=http://www.programmingDost.blogspot.com/
Textual
Links in HTML
Use the
<a></a> tags to define the start and ending of an anchor.
HTML
Code:
<a href="http://www.programmingDost.blogspot.com/"
target="_blank" >Programming Dost Home</a>
<a href="http://www.google.com/"
target="_blank" >Google Home</a>
<a
href="http://www.yahoo.com/" target="_blank" >Yahoo
Home</a>
Different
kinds of “target” in an anchor tag
The target
attribute defines whether to open the page in a separate window, or to open the
link in the current browser window.
target="
_blank" Opens
new page in a new browser window
_self" Loads
the new page in current window
_parent" Loads
new page into a frame that is superior to
where the link
lies
_top" Loads
new page into the current browser window,
cancelling all
frames
Links
for an Email Address in HTML
Creating an email link is simple. If you want
somebody to mail you about your site a good way to do it is place an email link
with a subject already in place for them.
HTML
Code:
<a href="mailto:email@programmingDost.blogspot.com?subject=Feedback"
>Email@programmingDost.blogspot.com</a>
Email
Links:
Email@programmingDost.blogspot.com
No comments:
Post a Comment