Links in HTML

The basic links in HTML are created using the anchor tag, <A>, and can be linked either to other files or to another location in the current document. To link to another document, place the HREF option inside the opening tag. Clicking on the item placed between the opening and closing anchor tags will cause the link to jump to the location assigned to the HREF option. For example, the following is a simple link to another file in HTML:

<A HREF="http://www.anotherplace.com">Click to go to another place</A>

If no internal location is specified, as is the case here, it jumps to the start of the linked file. It's possible to create a jump to a location inside the file by creating a position marker and then using that marker to qualify ...

Get Sams Teach Yourself XML in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.