Chad Perrin wrote:
On Sun, May 21, 2006 at 07:23:05PM +0100, Timwi
wrote:
Chad Perrin wrote:
On Mon, May 15, 2006 at 09:16:46PM +0300, Rotem
Liss wrote:
As far as I understand, a block element
(<ul>) cannot be included in an
inline element (<s>).
You can always redefine block elements as inline
elements, and vice
versa, though. Of course, I'm not entirely sure that's relevant to this
discussion.
No, you can't. You can use CSS to make <s> appear as a block
element, or
<ul> as an inline element, but that doesn't make <ul> allowed inside
<s>.
. . . for what definition of "allowed"?
For the definition "a validating XHTML parser won't barf up errors".
In answer to which specific statement was "No,
you can't" written?
Intuitively, it looks like you're responding to the statement that block
elements can be redefined as inline elements, but then you say that you
can make ul and inline element. You seem to contradict yourself, unless
you're making some kind of distinction between "redefine [block
elements] as inline elements" and "make [a block element] appear [. . .]
as an inline element".
He's making a distinction between the two similar, but different document
structures:
* (X)HTML document tree
* CSS layout tree
(X)HTML calls certain elements "block" elements and certain other elements
"inline". This implies certain things about how they are displayed, but more to
the point you're explicitly disallowed from placing a block element (such as a
<ul>) inside an inline element (such as an <s>).
In (X)HTML these are intrinsic to the schema definition; most of the
prohibitions are specified in the DTD, and can be enforced by a validating parser.
For example:
http://validator.w3.org/check?uri=http%3A%2F%2Fleuksman.com%2Fmisc%2Flist-o…
http://validator.w3.org/check?uri=http%3A%2F%2Fleuksman.com%2Fmisc%2Flist-b…
CSS has concepts of "inline" and "block" objects which control how
parts of the
document are laid out. These are not necessarily inherent; you can define
whether any particular object should be treated by setting its 'display'
property at the appropriate place in the cascading style sheet.
This CSS property does not alter the (X)HTML schemas, but only the display layout.
-- brion vibber (brion @
pobox.com)