Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- five of nothing
January 9, 2006, 12:56 am
rate this thread
five of nothing wrote:
The spec is there for you to check.
The important part is the DTD which states:
<!ELEMENT A - - (%inline;)* -(A) -- anchor -->
That means that the content of the A element can be anything defined as
%inline except for another A element.
%inline is defined as
<!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; |
and the various components expand as
<!ENTITY % fontstyle "TT | I | B | BIG | SMALL">
<!ENTITY % phrase "EM | STRONG | DFN | CODE | SAMP | KBD | VAR | CITE |
ABBR | ACRONYM" >
<!ENTITY % special "A | IMG | OBJECT | BR | SCRIPT | MAP | Q | SUB |
SUP | SPAN | BDO">
<!ENTITY % formctrl "INPUT | SELECT | TEXTAREA | LABEL | BUTTON">
So that tells you all the elements that can be contained within an A