You are here: Re: Can I ever use a div in a paragraph?? « HTML « IT news, forums, messages
Re: Can I ever use a div in a paragraph??

Posted by Bergamot on 01/09/07 01:01

Andrew wrote:
>
> Are there any circumstances where I can put a <div> inside a <p>

No. Per the DTD
<!ELEMENT P - O (%inline;)* -- paragraph -->

This means it can only contain inline elements. Div is a block element.

> or is
> this just part of using a Strict Doctype?

This rule is the same for all DOCTYPEs.
http://www.w3.org/TR/html401/struct/text.html#edef-P

--
Berg

 

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

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