O'Reilly logo

Inside XML by Steven Holzner

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

All About XLinks

Hyperlinks have long been an important part of HTML, and you create them with the HTML <A> element, like this:

<A HREF = "http://www.starpowdermovies.com/reviews.html#blandings">
    Mr. Blandings Builds His Dream House
<A>

The hyperlink appears in an HTML document either as text—typically underlined and colored—or as a clickable image. When clicked, the hyperlink can perform a variety of actions: navigating to a new document, as well as a specific location in that document; opening the new document in an existing frame or even a new window if you use the TARGET attribute; or executing JavaScript if you use the javascript: URL. Table 15.1 lists the official HTML attributes for the <A> element:

Table 15.1. Official HTML Attributes ...

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