Topic: p-tag in a p-tag |
|
---|---|
Author | Thread |
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 08-31-2008 19:14 |
Paranoid (IV) Inmate From: Norway |
posted 08-31-2008 19:44
Nested P elements are schabernack. |
Lunatic (VI) Inmate From: under the bed |
posted 08-31-2008 19:56
quote:
|
Paranoid (IV) Inmate From: Norway |
posted 08-31-2008 21:16
Holy smoke! code: <p>This is the first paragraph <object> <p>This is the second paragraph <object> <p>This is the third paragraph</p> </object> </p> </object> </p> This of course is pure valid HTML. It makes no sense whatsoever to have a P in a P but it is sorta kinda technically possible. If an OBJECT is inside a P, or any element only accepting inline children, the text fallback should be a SPAN or simply a text node. |
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 08-31-2008 21:23 |
Obsessive-Compulsive (I) Inmate From: |
posted 09-01-2008 05:56
DIV isn't allowed, either (since it's block level), so best use SPAN. |
Paranoid (IV) Inmate From: Norway |
posted 09-01-2008 13:59 |
Paranoid (IV) Inmate From: Florida |
posted 09-01-2008 23:32 |