Horje

Full Example of href Attribute

The HTML <a> href Attribute is used to specify the URL of the page that the link goes to. When the href attribute is not present in the <a> an element that it will not be a hyperlink. This attribute is used to specify a link to any address. This attribute is used along with <a> tag.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h2>The href Attribute</h2>

<p>HTML links are defined with the a tag. The link address is specified in the href attribute:</p>

<a href="https://itupto.com">Visit Site</a>

</body>
</html>

Output should be:

Full Example of href Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Attributes
Uploaded by:
Admin