Syntax:
<a href="index.html">
// Content
</a>
1. href attribute: Without this tag, we are unable to go to the next page or the next document. This attribute is compulsorily used by the <a> tag. This attribute contains a URL path.
2. target attribute: The link tag uses another attribute which is the target attribute. By default, if we open any link then the page will be displayed in the current browser window. But if we wish to change these settings then we use the target attribute. It tells us where we want our linked document to be opened.
This target attribute can use any of the values:
This target attribute can use any of the values:
Three types of links are there: active, visited, and unvisited.
By CSS we can change the color of the links.