Anchors in Pages


Web pages can contain predefined locations to which links can point. These spots are called anchors in HTML (and are created with the <a> tag ” A for anchor).

You can add anchors to your own Web pages and then link to those anchors from elsewhere in the same page or from other pages you create. In addition, you can create links to point to any existing anchors in other pages on the Web.

When you create an anchor, give the anchor a name. You create links to anchors as you do to a Web page, with one difference: You add the name of the anchor to the URL you enter for the link.

graphics/bookpencil_icon.gif

You can use a relative pathname to point to an anchor in another file stored on the same server (to link from one page of a multipage document to an anchor in another page in the document, for example). See the following section, "Local Files."



Sams Teach Yourself Internet and Web Basics All in One
Sams Teach Yourself Internet and Web Basics All in One
ISBN: 0672325330
EAN: 2147483647
Year: 2003
Pages: 350
Authors: Ned Snell

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net