O'Reilly logo

Web Programming with HTML5, CSS, and JavaScript by Dean

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

6.6 Navigation Within a Web Page

You might recall from Figure 6.1 that there are three basic types of values for an a element’s href attribute. We’ve already talked about an absolute URL value and a relative URL value. In both of those cases, the target is a web page separate from the current web page. The third type of href value shown in Figure 6.1 is for when you want a link that takes the user to some specified point within the current web page. That can be particularly useful for long web pages, so the user can quickly jump to designated destinations within the web page. For example, note the blue links near the top of the Clock Tower web page in FIGURE 6.6. If the user clicks the Clock Tower Photograph link, then the web page scrolls ...

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