Project Requirements

HTML

two html files, a, href, #, id, link title, top, mailto, subject, target, _blank, visited, absolute link, relative link, open in new window, open in same window, mailto link with subject

CSS

link changes color when visited, link changes color on hover, title displays on hover

Links

Working with Links

This page shows examples of internal, external, and relative links, as well as link behaviors and a mailto link.

What is a hyperlink?

A hyperlink or link is a clickable element in HTML that directs one source to another. Hyperlinks allow users to easily navigate the web and share its contents.

Types of Links in HTML

Internal Link

Internal links are hyperlinks that direct users to different pages or section within the same domain.

Examples:

External Link

External links are hyperlinks that direct users to a different domain or website.

Examples:

Relative Link

A relative link uses a path that is relative to the current page's location to direct users to another page or file that is on the same website or server.

Example: Visit Page 2

Special Link

Mailto links are special links used to redirect to an email address. When a user clicks on the Mailto link, the default email client on the user's device opens and suggests sending a message to the email address mentioned in the Mailto link.

Example: Send Email

Return to top of page