- Hyperlinks allow users to connect from page to page by clicking. A Hyperlink can be a text, group of texts, images, animation, video or any kind of object that facilitate to jump another document by click on it. You can find the links, when moving the mouse pointer over a link in a HTML Document, the arrow will change into a little hand.
Hyperlinks are specified in the HTML documents by <a> tag.
Ex:
<a href = http://programmingforbeginers.blogspot.com>Programming Languages for Beginners homepage</a> - The href attribute specifies the destination location of a link. This displays like this: This is a Link to Programming Languages for Beginners homepage
Destination of the link not only be a HTML, it can be an image, video or any other object.
HTML Hyperlink Target Attribute - Document which is link to the page, we can specify where to open it. We can nominate following locations to load linked document
- in the body of the documet
- In a new browser window
- in a frame of the document body
- <a target = "_blank" href http://programmingforbeginers.blogspot.com"> Connect me </a>
Open the linked document in a new browser window
HTML HyperLink Name Attribute
The Name attribute uses to create bookmarks inside the HTML Document. Name Attribute specifies the name of Anchor.
HTML HyperLink ID Attribute
The ID attribute comes as a new standard of specifying the names of Anchor. HTML5 suggests to specify anchors by ID attribute.
Ex: <a name = "top" >Top of the Page</a>
This creates an anchor named top, inside the HTML Document
Ex: <a name = "#top" >Go to the Top of the Page</a>
This creates a link to the anchor earlier defines as top inside the same HTML Document
Ex: <a name = "http://programmingforbeginers.blogspot.com/2012/12/html-hyperlinks.html#top" >Go to the Top of the page</a>
This creates a link to the top of the html-hyperlinks page
This blog supports beginners to get deep knowledge about programming in HTML, CSS, JavaScript, php, asp and other Web technologies and VB, VB.net, Java,step by step from the beginning. All the programming Concepts discuss with simple examples for the readability. Try out daily uploaded lessons to be a Programmer.
HTML HyperLinks
HTML Hyperlinks
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment