HTML Hyperlink provides linking between the two web pages.
It can be a text, image etc. and by clicking on which we can move from on web pages to another web page on the website.
HTML Hyperlink is defined by <a href="url"> syntax.
href stands for Hyperlink Refrence (hyperlink address).
url stands for Uniform Resource Locator(where our resource is located).
In the above, we have shown an example of HTML Hyperlink.
Run the code to see the effect.
The target attribute is used to enhance the property of hyperlink.
It opens the web page in a new tab.
It is very useful when we want that the user can go to another webpage without leaving the current webpage.
Run the code to see the effect.
It opens the web page in the same frame(this is default).
Run the code to see the effect.
It opens the web page in the parent frame.
Run the code to see the effect.
It opens the web page in the full body of the window.
Run the code to see the effect.