You are here: Re: To the gurus out there - a conundrum. « HTML « IT news, forums, messages
Re: To the gurus out there - a conundrum.

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация