Using the Anchor Element

You can use the anchor element to link to any Web resource. Hyperlinks to pages on the same Web site are usually made with relative paths. For example, here is a link to the formatted Web page.

Hyperlinks to pages on another Web site require a URL, like this link to Google.

You can use the target attribute to open a Web resource in a new browser window, like this link to Yahoo!

You can create a link to an e-mail address, like this link for sending comments to the White House.