In this tutorial, we will see the use of href attribute of anchor tag . The
href attribute of anchor tag holds URL of destination document, which we want
to visit. URL is a address of required file or document.
If href attribute is not available in anchor tag, it works as a placeholder of hyperlink.
(Address of destination document)
| Define the address of required file.
Absolute Address(URL)-: another site.
Relative Address(URL)-: within site.
Declaration syntax of href attribute in anchor tag.
|<a href="url">Text Area</a>|
Note: See the browser compatible page for successfully rendering the program.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.