W3C home > Mailing lists > Public > www-html@w3.org > April 2002

Re: XHTML DTD Question: span and p

From: Frank Tobin <ftobin@neverending.org>
Date: Thu, 18 Apr 2002 14:09:09 -0400 (EDT)
To: www-html@w3.org
Message-ID: <20020418140726.Y59511-100000@palanthas.neverending.org>
Greg Faron, on 2002-04-15, wrote:

>    I'm trying to write valid xhtml documents in which I have span elements
> whose data I rewrite and whose visibility I modify.  In the course of
> authoring and validating it became painfully obvious that, according to the
> XHTML Transitional DTD, a <span> element may not contain a <p> element (or
> a <div> for that matter).

Will not using a <div> instead of <span> to contain what you want satisfy
your needs?

BTW, when posting, please use trimmed code examples.  Your 'snippet'
contained much extraneous, obsfucating data.

Frank Tobin		http://www.neverending.org/~ftobin/
Received on Thursday, 18 April 2002 14:09:09 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:59 UTC