Horje
How to create HTML href Attribute

The <a> tag defines a hyperlink. The href attribute specifies the URL of the page the link goes to:


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





Related Articles
What is HTML Attributes HTML Attributes
How to create HTML href Attribute HTML Attributes
How to create HTML src Attribute HTML Attributes
How to create HTML width and height Attributes HTML Attributes
How to create HTML alt Attribute HTML Attributes
How to create HTML style Attribute HTML Attributes
How to create lang Attribute HTML Attributes
How to create HTML title Attribute HTML Attributes
How to create HTML Single or Double Quotes HTML Attributes
What is HTML Headings HTML Attributes
How to create HTML Headings HTML Attributes
What is Headings Are Important HTML Attributes
How to create HTML Bigger Headings HTML Attributes

Single Articles
Full Example of href AttributeHTML Attributes

Read Full:
HTML Attributes
Category:
Web Tutorial
Sub Category:
HTML Attributes
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
213



Share on: