2014-09-19

<a> Anchor Tag

The <a> tag defines a hyperlink, which is used to link from one page to another.

A link(hyperlink link) with Text

<a href="http://www.kaslab.in" target="new">Visit learn2new.in !</a> 

hyperlink link with Image

<a href="http://www.kaslab.in" target="new"><img src="images/1.jpg" /></a> 

Attributes

  • href can be used to specify the target of a link.
  • charset can be used to specify the character set of the target of a link.
  • type can be used to specify the MIME type of the target of a link.
  • hreflang can be used to specify the language (in the form of a language code) of the target of a link. It should only be used when href is also used.
  • rel can be used to specify the relationship of the target of the link to the current page.
  • rev can be used to specify the relationship of the current page to the target of the link.
  • accesskey can be used to associate a keyboard shortcut to the element.
  • tabindex can be used to specify where the element appears in the tab order of the page.

0 comments:

Post a Comment

Tools & Plugins

Blog Archive