Html a tag

In the <a> tag identify a hyperlink and its used to hyperlink from one to another web page. which define anchor In the tag important attribute one is href and it specify links to another page . In the target attribute to specify whether open or not new web page on window.Also you can use link tag to a image and you also give to link same page.

Syntax:

<a href = "" > Content or Image </a>

Example Code

<!DOCTYPE HTML>
<html>
<body>
  <a href="http://www.indianwebhostingcenter.com" target="_blank">Cheap Web Hosting!</a>
</body>
</html>

Out Put:



In the above example a tag has been used for Cheap Web Hosting! content and target = "_blank" attribute has been used to a web page open to a new window.By default, links will appear as follows in all browsers:
* An unvisited link is underlined and blue
* A visited link is underlined and purple
* An active link is underlined and red





Content