Horje
What is HTML Links

Links are found in nearly all web pages. Links allow users to click their way from page to page.

HTML Links - Hyperlinks

HTML links are hyperlinks.

You can click on a link and jump to another document.

When you move the mouse over a link, the mouse arrow will turn into a little hand.

Note: A link does not have to be text. A link can be an image or any other HTML element!

 


Example of HTML Links

The HTML <a> tag defines a hyperlink. It has the following syntax:
index.html
Example: HTML
<a href="https://itupto.com/">Visit Itupto.com!</a>

Full Example of HTML Links

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





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 LinksHTML Links
Full Example of HTML LinksHTML Links

Read Full:
HTML Links
Category:
Web Tutorial
Sub Category:
HTML Links
Uploaded by:
Admin
Views:
143


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