OZONE Asylum
Forums
Stupid Basic HTML
p-tag in a p-tag
This page's ID:
30513
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Nested P elements are schabernack. It's just unpossible per the [url=http://www.w3.org/TR/REC-html40/struct/text.html#h-9.3.1]HTML4 specification of the P element[/url]. The ending tag of P is optionnal in HTML, plus Ps can not contain any other block level element ( including P of course ). Of course it is possible to do schabernack programmatically, but I fail to get the semantic of nested P elements. Plus the user agent will/should close the parent P the second you append a P in it. Therefore a page containing nested P elements should validate, and its DOM tree will feature sibling P elements. HTH, [url=http://www.p01.org/][img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_teapot.png[/img][/url] [small](Edited by [url=http://www.ozoneasylum.com/user/2185]poi[/url] on 08-31-2008 20:02)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »