Hyperlinks, Anchors and Links :
Hyperlink is a reference ( address ) of resource which is situated in web or pages. We use the anchor term for direction the hyperlink.
We use a HTML tag <a> for indicate the Hyperlink and anchors.
Syntax of HTML Link :
<a href = “URL”> Link text </a>
href Attribute :
href contain the address of link. Like,
<html> <head> <title> Link Page </title> </head> <body> <a href = “http:// www.dtouchpoint.blogspot.com”> INNOVATION </a> <br /> <a href = “paragraph.html”> Paragraph Page </a> </body> </html> Save it and open your browser. Result : INNOVATION Paragraph Page |
When we click this text then you go to website INNOVATION which we include our link section and second link is our paragraph page. If we click Paragraph Page text then we go to our paragraph page. Not only text, we can use image, sound file etc. for link text or any HTML tag.
Caution : When we link one page to another page, one think is always remember that all page are same direction or path.
Written by “Shojib”
No comments:
Post a Comment