The HTML anchor tags <a> is used to create a hyperlink in your document. this tutorial will guide you that how we create a link of simple text and images. Hyperlinks are created with an "href" tag .
For example :
Home Page
When user move the cursor over Home Page the arrow will turn into a little hand and when user click on this link then home.html file will be open.
A href is short from Hypertext Reference which provide linked file address. This address is an valid URL in order to properly redirect a user to a different location. In simple word href is URL where user will navigate to if they click on this link.
<a href="http://www.learninghints.com/">Visit Learning Hints</a>
This will produced a link Visit learning Hints
Target specify that when user click on any link then where the link file will be open. This may be in same window or new window or any else. Target attribute may have following value:
|
_blank |
Opens new page in a new browser window |
|
_self |
Loads the new page in the current window |
|
_parent |
Loads new page into a parent frame |
|
_top |
Loads new page into the current browser window, canceling all frames |
For example :
<a href="http://www.learninghints.com/notes.php" target="_blank">Read Notes
on Learning Hints</a>
will display
Read Notes on Learning hints
when you click on that link a new then link page open in new window.
HTML Forms
HTML DECIMAL Color Code and HEX Color Code
HTML Nested Lists
Elements and Tags In HTML
4 Primary Tags In HTML
Create Your First Web Page in HTML
Attributes in HTML Tags
HTML DOCTYPE Declaration
HEAD Tag in HTML
Meta Tags in HTML
Body Tag in HTML
H1 to H6 HTML Elements
Basic HTML Elements
HTML Table Element
Basefont HTML Element
Formatting Element in HTML
Font Element In HTML
Style Element in HTML
CSS Properties
DIV in HTML Document
List in HTML
Creating Menus With HTML list
Creating Horizontal Menu With HTML list
HTML Image Tag
Hyperlinks In HTML