Saturday, 28 September 2013

Hyper link or Anchor tag in HTML

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=

Textual Links in HTML
Use the <a></a> tags to define the start and ending of an anchor.
HTML Code:
<a href="" target="_blank" >Programming Dost Home</a>
<a href="" target="_blank" >Google Home</a>
<a href="" 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.
_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="" ></a>

Email Links:

No comments:

Post a Comment