Type: | Text Characteristics |
---|---|
Attributes: | color • font-family • font-feature-settings • font-stretch • font-style • font-variant • font-weight • font • justification-ratio • letter-spacing • outline-color • outline-width • overprint • requote • suppress-ligatures • text-decoration • text-transform • align • background-color • background-image-dpi • background-image-position • background-image • background-pdf • border-color • border-style • border-width • border • clear • corner-radius • display • float • font-size • height • href • left • line-cap • line-height • line-join • margin • onmouseover • overflow • padding • page-break-after • page-break-inside • position • rotate • size • top • vertical-align • visibility • white-space • width • class • colorspace • direction • id • lang |
See: | span u |
A type of span normally used to create a hypertext link around a piece of text.
In HTML, the a tag was required whenever a hypertext link needed to be placed, and could be used around text or images. In this packages XML syntax, a hypertext is signified by specifying the href attribute. This can be on any element, not just an a, as you can see in the examples.
The a element is here mainly because it's familiar to users coming from HTML. From a CSS2 point of view however, it's identical to the u element.
To define a hypertext link, use the <A> tag with an href attribute to indicate the start of the hypertext link, and use the </A> tag to indicate the end of the link. When the user clicks any content between the <a href> and </A> tags, the link is activated.
<a href="#Chapter1">Go to Chapter 1</a> is identical to <span text-decoration="underline" href="#Chapter1">Go to Chapter 1</a>