Horje
How to create HTML Links - Syntax

The HTML <a> tag defines a hyperlink. It has the following syntax:

The most important attribute of the <a> element is the href attribute, which indicates the link's destination.

The link text is the part that will be visible to the reader.

 


Example of HTML Links - Syntax

<a href="url">link text</a>

Full Example of HTML Links - Syntax

The most important attribute of the <a> element is the href attribute, which indicates the link's destination. The link text is the part that will be visible to the reader. Clicking on the link text, will send the reader to the specified URL address. This example shows how to create a link to Itupto.com:
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>HTML Links</h1>

<p><a href="https://www.w3schools.com/">Visit W3Schools.com!</a></p>

</body>
</html>

Output should be:

Full Example of HTML Links - Syntax





Related Articles
What is HTML Links HTML Links
How to create HTML Links - Syntax HTML Links
How to create HTML Links The target Attribute HTML Links
What is Absolute URLs vs. Relative URLs HTML Links
How to use an Image as a Link HTML Links
How to use Link to an Email Address HTML Links
How to create Button as a Link HTML Links
How to use a title in Link HTML Links

Single Articles
Example of HTML Links - SyntaxHTML Links
Full Example of HTML Links - SyntaxHTML Links

Read Full:
HTML Links
Category:
Web Tutorial
Sub Category:
HTML Links
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
69


Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_links_w3schools

Share on: