|
|
|
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
| |
| Subscribe |
|
Submit your email address and receive
article and product notifications. Your email is safe with us.
|
|
|
|
|
|