Xah Lee said:
with strict HTML spec, can one have <p> tags inside table's <td>
tag?
In general, I suspect one of the HTML groups might be a
better place to ask questions like this.
But since you asked in in a general XML group, here's a general
answer. The DTD is your friend; read it. The HTML 4.01 DTD
(
http://www.w3.org/TR/html4/strict.dtd) reads in part:
<!ELEMENT (TH|TD) - O (%flow
* -- table header cell, table data cell-->
The parameter entity 'flow' is declared as:
<!ENTITY % flow "%block; | %inline;">
The parameter entity 'block', in turn, is:
<!ENTITY % block
"P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |
BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS">
So the answer is yes.
also, in strict XHTML, can one have <p> tages inside <div>?
The DTD is at
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd --
except for differences of upper and lower case, the same parameter
entities are involved; I'll leave the details as an exercise for the
reader.
-C. M. Sperberg-McQueen