Timeline for Why can't the <p> tag contain a <div> tag inside it?
Current License: CC BY-SA 4.0
16 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 11, 2022 at 14:15 | answer | added | Mossab | timeline score: 3 | |
Jul 7, 2019 at 22:01 | history | edited | Peter Mortensen | CC BY-SA 4.0 |
Active reading [<http://en.wikipedia.org/wiki/World_Wide_Web_Consortium> <http://en.wikipedia.org/wiki/XHTML>].
|
Feb 23, 2018 at 20:30 | history | edited | tanguy_k | CC BY-SA 3.0 |
Fix indentation
|
Jan 8, 2016 at 18:12 | answer | added | Oriol | timeline score: 54 | |
Dec 14, 2015 at 21:03 | comment | added | Triynko | Declaring the div's style as inline doesn't work either. | |
Jun 17, 2014 at 15:52 | comment | added | Ciro Santilli OurBigBook.com | possible duplicate of: stackoverflow.com/questions/4967976/… (unflagged): any decent answer to that will answer how to read the HTML spec and thus also answer this. | |
Sep 13, 2013 at 13:47 | answer | added | geekdev786 | timeline score: -1 | |
Feb 4, 2012 at 15:09 | vote | accept | Henry H Miao | ||
Jan 1, 2012 at 22:43 | answer | added | Colin Campbell | timeline score: 232 | |
S Dec 6, 2011 at 13:37 | history | suggested | oberfreak | CC BY-SA 3.0 |
removed thanks
|
Dec 6, 2011 at 13:33 | review | Suggested edits | |||
S Dec 6, 2011 at 13:37 | |||||
Dec 6, 2011 at 10:03 | comment | added | Joey |
JamWaffles: That p is a block level element has nothing to do with it. div is also one and allows other blocks.
|
|
Dec 6, 2011 at 9:55 | answer | added | defau1t | timeline score: 74 | |
Dec 6, 2011 at 9:53 | answer | added | Gaurav Agrawal | timeline score: -7 | |
Dec 6, 2011 at 9:46 | comment | added | Bojangles |
Because <p> is a block level element, and is (supposed to be) used for displaying text, it won't allow other block level elements inside it, but only inline ones like <span> and <strong> .
|
|
Dec 6, 2011 at 9:44 | history | asked | Henry H Miao | CC BY-SA 3.0 |