Previous | Home | Next |
HTML Text Linkis using a HTML tag <a> and it is also called anchor tag. In <a> tag user can click link and reach to linked document on web page either onpage ,next page ,on top,
Syntax used
<a href="url">link text</a>
Example
<!DOCTYPE html>
<html>
<head>
<title>Hyperlink Example</title>
</head>
<body>
<p>Click following link</p>
<a href="http://www.r4r.co.in" target="_self">Hello user's in r4r.co.in</a>
</body>
</html>
Output :
HTML Text are used the following attributes
Name | Description |
_self | Opens the linked document in the same frame as it was clicked (this is default) |
_blank | Opens the linked document in a new window or tab |
_parent | Opens the linked document in the parent frame |
_top | Opens the linked document in the full body of the window |
framename | Opens the linked document in a named frame |
Previous | Home | Next |