0% found this document useful (0 votes)
24 views

HTML Links - Hyperlinks: Example

HTML links, also known as hyperlinks, allow users to click text or other elements to jump to other documents located at different web addresses. Links are defined using the <a> tag along with an href attribute specifying the URL. The visible link text describes the destination. Clicking on the link will send the user to the specified address, whether it is an absolute URL with the full web address or a relative local link to another page on the same site.

Uploaded by

Yogesh Patil
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

HTML Links - Hyperlinks: Example

HTML links, also known as hyperlinks, allow users to click text or other elements to jump to other documents located at different web addresses. Links are defined using the <a> tag along with an href attribute specifying the URL. The visible link text describes the destination. Clicking on the link will send the user to the specified address, whether it is an absolute URL with the full web address or a relative local link to another page on the same site.

Uploaded by

Yogesh Patil
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

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. It can be an image or any other HTML
element.

HTML Links - Syntax


Hyperlinks are defined with the HTML <a> tag:

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

Example
<a href="https://www.w3schools.com/html/">Visit our HTML tutorial</a>
Try it Yourself »

The href attribute specifies the destination address


(https://www.w3schools.com/html/) of the link.

The link text is the visible part (Visit our HTML tutorial).

Clicking on the link text will send you to the specified address.

Note: Without a forward slash at the end of subfolder addresses, you might
generate two requests to the server. Many servers will automatically add a
forward slash to the end of the address, and then create a new request.

Local Links
The example above used an absolute URL (a full web address).
A local link (link to the same web site) is specified with a relative URL (without
https://www....).

Example
<a href="html_images.asp">HTML Images</a>

You might also like