|
||
Adding Links |
||
| |
||
Adding Hypertext LinksHypertext links are the single element that best represents the flexibility and dynamic nature of the Web.
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.
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 linksTo 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
|
||