12 web design hours

Adding Links

Adding Hypertext Links

Hypertext links are the single element that best represents the flexibility and dynamic nature of the Web.

  • Hypertext links are words or phrases specially coded by a Web author to allow users to navigate among Web pages and images.

Hypertext links, like all hyperlinks, consist of an anchor and a target. The code applied to the anchor allows you to click on it to move directly to another location or Web document without knowing its URL. Without hypertext links, you would have to know the URL of every Web site you wanted to access on the Internet.

  • An anchor is the component of a hyperlink that viewers click on to move to a target location or a Web document. The anchor tag is <A>
  • A target is the component of a hypertext link to which views move or jump to.

YOu can use hypertext links to navigate among Web documents or within a single document.

Although it is possible to creat Web pages without hypertext links, the best Web pages take advantage of hypertext capabilities. You can recognize hypertext links easily in most documents, because browsers typically offset hypertext links with a distinctive color and a single underline or both.

In this chapter, you will define hypertext links, creat hypertext links to other Web pages and within a document. YOu will assign color attributes to hypertext links.

Examining Hypertext links

To create hypertext links in your documents, you use the Anchor tag, <A>, and its required closing tag, </A>. The <A> tag has a required attribute, HREF=n where n is the hypertext link target. The n can represent either a target docuemtn or a section of a document, but you must alway name a target for your <A> tag.

To complete a link, you would replace n with the target (a URL or a file name on the web).

[Example] <A HREF="http://www.athinker.com> the greatest website in the world </A>

[Display] the greatest website in the world (opening in a new browser window)

Activity: hypertext