HTML and CSS Reference
In-Depth Information
choose a hyperlink, among other objects in the browser window, by
pressing the Tab key and then activate that link by pressing the Enter
key. With the tabindex attribute, you may reorder the sequence in which
the browser steps through to each object when the user presses the Tab
key. The value of this attribute is an integer greater than 0. The browser
starts with the object whose tabindex=1 and moves through the other
objects in increasing tabindex order.
With the accesskey attribute, you may select an alternative "hot key"
that, when pressed, activates the specific link. The value of this attribute
is a single character that is pressed in conjunction with an Alt or "meta"
key, depending on the browser and computing platform. Ideally, this
character should appear in the content of the <a> tag; if so, the browser
may choose to display the character differently to indicate that it is a
hot key.
See an expanded description for both of these attributes in Chapter 9 .
6.3.2. Linking to Other Documents
Say you make a hyperlink to another document with the <a> tag and its
href attribute, which defines the URL of the target document. The con-
tents of the <a> tag are presented to the user in some distinctive manner
to indicate the link is available.
When creating a link to another document, you should consider adding
the title , rel , and rev attributes to the <a> tag. They help document
the link you are creating and allow the browser to embellish the display
anchor contents.
6.3.3. Linking Within a Document
Creating a link within the same document or to a specific fragment of
another document is a two-step process. The first step is to make the
target fragment; the second is to create the link to the fragment.
Search WWH ::

Custom Search