HTML Hyperlink
HTML Hyperlink
s
HTML
GRADE 8
HYPERLINK
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!
HTML Links - Syntax
The HTML <a> tag defines a hyperlink. It has the following
syntax:
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.
Example
This example shows how to create a link to
W3Schools.com:
<a href="https://www.w3schools.com/">Visit
W3Schools.com!</a>
By default, links will appear as follows in
all browsers:
•An unvisited link is underlined and blue
•A visited link is underlined and purple
•An active link is underlined and red
<h2>Relative URLs</h2>
<p><a href="html_images.asp">HTML Images</a></p>
<p><a href="/css/default.asp">CSS Tutorial</a></p>
Try it Yourself »