Christian Biesinger wrote:
Tony Mechelynck wrote:
? Well, I won't contradict you, but if not the HTML guidelines, which
are the regulations which say that DIV (etc.) is block and SPAN (etc.)
is inline then?
You say that as if there necessarily is such a specification...
There is and in the HTML "specifications", specifically in the DTD
(Document Type Definition), linked to from:
<http://www.w3.org/TR/html4/struct/global.html#edef-DIV>
The link above leads you to (HTML 4.01 Strict DTD):
<http://www.w3.org/TR/html4/sgml/dtd.html>
Both links show %inline, %flow and %block - note there is no space after
the % sign (indicating a DTD entity). This is defining the permissable
content type - "the type it may contain".
Note the following have a space following the % sign. Note the distinct
difference. This defines all those that "are of a certain type".
% flow - Defines the entities that are flow type.
(% flow - %block; | %inline;)
The content type of the flow may be either block type or inline type, or
The % flow entity is defined in the DTD to be either Block or Inline,
which are the two basic content models in HTML.
% inline - Defines the elements that are inline type.
You will find all inline elements listed:
<http://www.w3.org/TR/html4/sgml/dtd.html#inline>
% block - Defines the elements that are block type.
You will find block elements listed:
<http://www.w3.org/TR/html4/sgml/dtd.html#block>
~#~
This is the way I understand it and am surprised at the responses.
Please correct me if I have gone wrong somewhere.
--
Gus
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout