O'Reilly logo

Beginning Web Programming with HTML, XHTML, and CSS, Second Edition by Jon Duckett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Links and Navigation

What really distinguishes the Web from other mediums is the way in which web pages can contain links that take you directly to other pages (and even specific parts of a given page). Known as hyperlinks, these links are often credited with being the secret behind the Web's phenomenal success. Hyperlinks allow visitors to navigate between web sites by clicking on words, phrases, and images.

The average web site is a group of pages users navigate between using hypertext links. These pages often include links to other web sites as well as to other pages in the same site.

In this chapter, you learn how to create links between the different pages of your site and to specific points within pages of your sites, as well as how to link to other sites known as external sites.

In the same way that the markup you learned in Chapter 1 described the structure of the document, links describe which parts of the document can link to which parts of other documents—so they also form relationships between different documents.

When you learn about links, it is also important to learn some of the key concepts regarding structuring your site into folders known as directories, and how you can use relative URLs to link between pages within your site.

In this chapter, then, you will learn:

  • How to structure the folders on your web site

  • How to link between pages of your site

  • How to link to specific parts of a page in your site

  • How to link to other sites

This chapter covers only linking ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required