Div tag in html
- href tag in html example
- anchor tag in html example
- hyperlink tag in html example
- anchor tag in html with example pdf
Anchor tag attributes...
HTML href Attribute
HTML href Attribute: It is used to specify the URL of the document.
How to create hyperlink in html with example
It contains the full address of the page that the user requests. It is used to link or connect one document to another document.
Supported tags:
HTML <a> href Attribute
It is used to specify the URL of the page that the link goes to.
When the href attribute is not present in the <a>, then the element will not be a hyperlink.
Syntax:
<a href="URL">Example: Below code illustrates the href attribute in <a> element.
Output:
HTML <base> href Attribute:
The HTML <base> href attribute is used to specify the base URL for all the relative URL of a page.
Syntax:
<base href="URL">Example: Below code illustrates the href in <base> tag.
Output:
HTML <area> href Attribute:
The <area> href attribute is used to specify the URL of the target page.
When the href attribute is not present in the <area>, an element that it will not be a hyperlink.