Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Linking into a page

So far, whenever you’ve linked to another page, the page loads and your browser displays it from the top.

But, the CEO’s asking you to link into a particular spot in the page: the Coffee section.

Sound impossible? Come on, this is Head First – we’ve got the technology. How? Well, we haven’t told you everything about the <a> element yet. Turns out the <a> element can play two roles: you’ve already seen it act as the jumping off point for traveling from one page to another, but it can also act as a landing point or destination of a link.

  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint