Posted by David Dorward on 03/29/06 23:40
Stan McCann wrote:
> How is a novice to tell the difference between an inline and block
> level element?
The basic difference is that blocks have a line break before and after them,
while inline flow beside each other and word wrap.
> For many elements, it is marked as in:
> <!ELEMENT FORM - - (%block;|SCRIPT)+ -(FORM) -- interactive form -->
>
> For others, it seems that this is incorrect:
> <!ELEMENT ADDRESS - - (%inline;)* -- information on author -->
>
> Is this saying that address (p and possibly others) are inline elements
> or am I reading it wrong?
You are. That says that the ADDRESS element may contain "zero or more
elements in the group %inline" (and nothing else).
(The form bit says it may contain one or more elements which are either
script or in the group %block except other FORM elements).
> Is there someplace else in the specification
> that states whether an element is inline or block?
http://www.w3.org/TR/html4/sgml/dtd.html#block
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
[Back to original message]
|