15-05-2013, 03:06 PM
Adding Hypertext Links to a Web Page
Adding Hypertext Links.ppt (Size: 2.12 MB / Downloads: 24)
Learning Objectives
Create hypertext links between elements within a Web page
Create hypertext links between Web pages
Review basic Web page structures
Create hypertext links to Web pages on the Internet
Distinguish between and be able to use absolute and relative pathnames
Create hypertext links to various Internet resources, including FTP servers and newsgroups
Creating a Hypertext Document
Hypertext documents contain hypertext links, items that you can select to view another topic or document, often called the destination of the link.
These links can point to:
another section
the same document
to a different document
to a different Web page
to a variety of other Web objects
Web Page Structures
Storyboarding your Web pages before you create links helps you determine which structure works best for the type of information you’re presenting.
You want to ensure that readers can navigate easily from page to page without getting lost.
You’ll encounter several Web structures as you navigate the Web.
Examining some of these structures can help you decide how to design your own system of Web pages.
Linking to a Section of a Document
To navigate to a specific location elsewhere in a document, rather than the top, you can set anchors and link to an anchor you create within the document.
for example, to create a link to a section in the Web page home.htm marked with an anchor name of “interests,” you create an anchor in home.htm in the section on Interests, and then enter the following HTML code in the current document:
<a href=“home.htm#interests”> View my interests </a>
the entire text, “View my interests,” is linked to the Interests section in the home.htm file, via the anchor name “interests”
the pound symbol (#) in this tag distinguishes the filename from the anchor name
Summary
Learned how to work with hypertext links.
Learned how to create anchors within a Web page.
Created links to anchors.
Created hyperlinks within a single document and links to other Web pages.
Discussed creating hyperlinks to resources other than Web pages, such as FTP sites, e-mail addresses and Gopher servers.