|
Posted by Jukka K. Korpela on 07/28/06 11:06
jojo <jojo.hafner@gmx.de> scripsit:
> rathernots@googlemail.com wrote:
>>
>> I'm using xHTML 1.0 transitional.
>>
> Hard to say because you just posted a snippet, but is "test2" outside
> every block-element? ASFAIK it is not allowed to have a TEXT-node as
> child element of the body.
With Transitional doctypes, it _is_ allowed. It's not recommendable, but
allowed.
There's normally no reason to use "loose" text, i.e. text not wrapped in a
block-level container. If it's a paragraph, make it a <p> element. If some
other block level element applies, logically, use it. If there is no
suitable semantic markup, use <div>, which means just a block level wrapper.
You can then use a Strict doctype in order to test, using a validator, that
you have really followed all the Strict rules.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Navigation:
[Reply to this message]
|