Create Hyperlink
Hyperlink allows to link to any other Web page. HTML allows linking to other HTML documents as well as images. Clicking on section of text or image that provides such linkages is called HYPERTEXT, HYPERLINK or a HOTSPOT. It is normal for HTML documents to contain links to other document, which can be located anywhere on the Web. These links are provided by URLs which provides location and filename to a document
The following elements represent links to other document. <A HREF="URL"> </A>
The HREF attribute of the anchor elements specifies a URL. If this attribute has a value, the contents of the <A> </A> element will be highlighted when the document is displayed in a common browser window, and clicking on this content will cause the browser to attempt to open the file specified by the URL
Link Types
There are three major types of links:
i) Internal link (Intra-page hyperlink)
These are links within a document which helps in the navigation of large size in documents. To use internal link NAME attribute and HREF attribute of <A> tag are used.
For example, <A NAME="TOP> </A>
</A> tag must be included, but no any text is required between <A> and </A>
ii) Local link (Inter-page hyperlink)
These are links to other web pages of the same web site. These can be used to point any resources like an HTML page, an image, a sound file, a movie file etc. Formate for clicking local link:
<A HREF="URL"> text to be displayed </A>
iii) External link (Linking different Web site)
These are links to the Web Pages of other web sites. If you are using a Hotmail and we got emails containing links to other web site then those links are external links. You may have seen a full URL in different social media platforms when you have a click on them they re-direct it in to a new window and follow's the given URL.
What is URL?
URL stand's for Uniform Resource Locator. An URL is a standard way of referencing a protocol, a host name, a port and a directory/path.
Protocol://host name:/directory_path
‹html›
‹head> ‹title› using Hyperlink ‹/title› ‹head›
‹BODY›
Local Hyperlink
‹a name="Top"› ‹/a›
‹a href="#Top"> Go To Top ‹/a›
Internal Hyperlink
‹a href="Computer.html"› Computer ‹/a›
External Hyperlink
‹a href="http://www.world24hub.com"›
‹/a›
‹BODY›
‹/html>

Post a Comment