Lists Home |
Date Index |
- From: Chris Lilley <firstname.lastname@example.org>
- To: Daniel Austin <email@example.com>
- Date: Mon, 29 Mar 1999 23:46:29 +0200
Daniel Austin wrote:
> This has not changed from HTML 4.0.
Or 3.2 or 2.0
> All of your paragraphs in XHTML
> documents should be enclosed with <p>...</p>
> element delimiters.
In theory, they were enclodsed in them implicitly with HTML <=4.0
through the magic of SGML omissible end tags. In practice, though,
browsers did not correctly infer missing end tags (or indeed omitted
start tags) thus leading to the well known disparities in HTML "parsing"
which became abundantly obvious with the rise in use of CSS and DOM
(both of which require a parse tree, preferable the correct parse tree).
> Since the <p> element is itself a block level element,
> it cannot itself contain any block level elements.
Like body, ul, ol, dl and div ? These are block level elements and can
contain other block level elements.
> The construction <p/> has to my knowledge never been acceptable markup in
> either HTML or XHTML documents.
In an XML document instance which used HTML element names, <p/> would be
quite fine for an empty paragraph, in a well formed document.
XHTML warns agains using it only if you are trying to fool existing HTML
browsers into accepting your XML as if it were HTML.
xml-dev: A list for W3C XML Developers. To post, mailto:firstname.lastname@example.org
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:email@example.com the following message;
To subscribe to the digests, mailto:firstname.lastname@example.org the following message;
List coordinator, Henry Rzepa (mailto:email@example.com)