Re: strange problem



thedarkman wrote:
Hi,

Even though you broke posting protocol I will answer your question.

it works okay in the local caff; interesting discussion by you code
warriors but for me html is a means to and end.

And what pray is so wrong with

<p><h2>hello world</h2></p> ?

Simply, H2 is a block element and P element can only inline elements as children.

<!ELEMENT P - O (%inline;)* -- paragraph -->

http://www.w3.org/TR/html4/struct/text.html#edef-P

with other example that was posted:

<p><h2>hello world</h2>

since the closing P tag is optional AFAIK what it would translated as is:

<p></p>
<h2>hello world</h2>


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
.