A
An anchor is a piece
of text or some other object (for example an image icon)
which marks the beginning and/or the end
of a hypertext link. The <A>
element is used to mark that piece of text, and
to give its hypertextual relationship to other documents.
The text between the opening and closing tags,
<A attributes> ...text... </A>
can be the start or destination (or both) of
a link. Here are some simple examples:
-
<A HREF="http://www.edu/st/file.html">bla bla</A>
- The string `bla bla' is a hypertext
link to the document `file.html' located
at the indicated URL.
-
<A HREF="image.jpeg">
<IMG SRC="icon.gif"> </A>
- The image `icon.gif' is a hypertext
link to the image file located in the same directory
as the currently accessed document (unless otherwise
specified by the BASE element).
-
<A NAME="frxx">textbla</A>
- The string `textbla' can be the target
of a link. This link is referenced via the form
"file.html#frxx" where 'file.html' is the file that
contains this anchor and `#frxx' is the anchor NAME. If
you are already in `file.html' the file is implicit, so
it can be left out.
Content
- #PCDATA
- a -- Anchor; source and/or destination of a link
- b -- Bold text
- br -- Line break
- cite -- Name or title of cited work
- code -- Source code phrase
- em -- Emphasized phrase
- h1 -- Heading, level 1
- h2 -- Heading, level 2
- h3 -- Heading, level 3
- h4 -- Heading, level 4
- h5 -- Heading, level 5
- h6 -- Heading, level 6
- i -- Italic text
- img -- Image; icon, glyph or illustration
- kbd -- Keyboard phrase, e.g. user input
- samp -- Sample text or characters
- strong -- Strong emphasis
- tt -- Typewriter text
- var -- Variable phrase or substitutable
Exclusions
- a -- Anchor; source and/or destination of a link
- Tag Minimization
-
Open Tag: REQUIRED
Close Tag: REQUIRED
See ATTRIBUTES
See CONTENT DECLARATION
Parent Elements
- address -- Address, signature, or byline for document or passage
- b -- Bold text
- blockquote -- Quoted passage
- body -- Document body
- cite -- Name or title of cited work
- code -- Source code phrase
- dd -- Definition of term
- dt -- Term in definition list
- em -- Emphasized phrase
- form -- Fill-out or data-entry form
- h1 -- Heading, level 1
- h2 -- Heading, level 2
- h3 -- Heading, level 3
- h4 -- Heading, level 4
- h5 -- Heading, level 5
- h6 -- Heading, level 6
- i -- Italic text
- kbd -- Keyboard phrase, e.g. user input
- li -- List item
- p -- Paragraph
- pre -- Preformatted text
- samp -- Sample text or characters
- strong -- Strong emphasis
- tt -- Typewriter text
- var -- Variable phrase or substitutable
Top Element List
All Element List
Tree
HTML 2.0 DTD