Beginning HTML, XHTML, CSS and JavaScript - Code Examples

Back to main book index

Chapter 2: Links and Navigation

Here are the examples for Chapter 2, which looks at how to create hypertext links.

Basic Links

ch02_eg01.htmlCreating a basic link to a page in the same folder using the <a> element
ch02_eg02.htmlCreating a link to an external Web site
ch02_eg03.htmlA link with a title attribute, which displays a tootlip when you hover over the link
ch02_eg04.htmlA link with white space (demonstration of a bad practice)
ch02_eg05.htmlA link to send an email
Try it outWrox Cafe - Adding links between pages
ch02_eg06.htmlLinking to a specific part of a page using the id attribute
Try it outWrox Cafe - Adding links inside a menu page