Forum Moderators: open
[w3.org...]
I'd like to point out that I'm still reading the specification, so there are many possibilities that the question is covered there. I'm currently asking here because I need to have this information quickly, before ending to read the w3c material.
Thanks again
[w3.org...]
If you mean that looking at how %inline and %block are defined I can obtain inline and block elements, that is not true. In fact some elements (i.e. LI) are not listed as inline, neither as block. This is the reason for my initial question!
%inline and %block are two entities that refer to the element's content (if any) "nature", they don't say anything about the nature of element itself.
...you're not quite right. It is true that, when you see '%inline' and '%block' (or '%flow'), in an ELEMENT in the dtd, the spec is describing the permissible content of the element. But the block, inline and flow ENTITY declarations do specify the elements that belong to each set:
(from the DTD [w3.org])
<!--
HTML has two basic content models:%inline; character level elements and text strings
%block; block-like elements e.g. paragraphs and lists
--><!ENTITY % block
"P ¦ %heading; ¦ %list; ¦ %preformatted; ¦ DL ¦ DIV ¦ NOSCRIPT ¦
BLOCKQUOTE ¦ FORM ¦ HR ¦ TABLE ¦ FIELDSET ¦ ADDRESS">
I'm not completely sure why list-items are not explicitly marked as either block or inline, but since they can contain either block or inline content:
<!ELEMENT LI - O (%flow;)* -- list item -->
<!ENTITY % flow "%block; ¦ %inline;">
...it's strongly implied that it's a block-level element.
I suspect that the reason it's not laid out explicitly in the HTML spec has to do with the fact that the CSS spec has alternatives besides 'inline' and 'block' [w3.org]...and it turns out the 'list-item' entry confirms that list items do behave as block level elments (i.e. they "...generate a principal block box.")
-B