SQL PHP HTML JavaScript articles and free code
 

Hyperlinking in HTML

            HTML allows us to link one web page with another. The text that provides such linking is known as "Hypertext" and the link is known as "Hyperlink".

            <A> ... </A> is used for linking web pages.

      Attributes of <A> ... </A>

        href: This attribute specifies the next navigatable page.

        link: Used to change the default color of the hyperlink.

        alink: Used to change the default color of a hyperlink that is activated.

        vlink: Used to change the color of a visited link.

      Note: Default color of a hyperlink is blue. The user can specify the color by giving the name of the color or its hexadecimal value. CSS is used to manage hyperlinks, read how CSS can be used under different conditions to manage styles of hyperlinks.

  Example:

  Hyperlink Example

  Code:
  <a href="html_hyperlink.php" link="red" alink="green" vlink="maroon"> Hyperlink Example </a>

        Types of Linking:

        In HTML, Hyperlinking can be done in either of the following ways.
         1. Linking to external web page.
         2. Linking within the same web page.
    Click here to see more on Types of Linking

Discuss this tutorial at forum

List of HTML Tutorials

Links and CSS
Use of Image as Hyperlink
Hyper link in HTML pages
How to Open link in a new window
Opening child window using JavaScript
Linking different areas of a page with back to top: Learn how to develop FAQ page

 

Subscribe
Submit your email address and receive article and product notifications. Your email is safe with us.

Scripts
PHP
JavaScript
List of HTML Tutorial
HTML Tags
Color Chart
HTML Calendar
Tags on web page
Web Design
Subscribe
Submit your email address and receive article and product notifications. Your email is safe with us.