View Single Post
Old 09-20-2011, 01:00 AM   #27
LaoTseu
Member
LaoTseu began at the beginning.
 
Posts: 20
Karma: 12
Join Date: Sep 2011
Device: Kindke
Quote:
Originally Posted by Toxaris View Post
<blockquote> is an allowed tag for epubs... It just should be inside <p> tags.
This is a very surprising statement to me. So far as I know, <blockquote> can be use as first child of <body> and do not need to be enclosed by <p>.

The following code validate with http://validator.w3.org/
Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>title</title>
</head>

<body>
<blockquote>
  <p>test</p>
</blockquote>
</body>
</html>
Maybe you meant that when using strict HTML/XHTML, <blockquote> can only contain block-level elements like <p> so

Code:
<blockquote>
text 1
text 2
text 3
</blockquote>
is invalid for strict XHTML whereas

Code:
<blockquote>
<p>
text 1
text 2
text 3
</p>
</blockquote>
is valid.
LaoTseu is offline   Reply With Quote