HTML and CSS Reference
In-Depth Information
<blockquote cite="Percy Bysshe Shelley, Ozymandias">
<p>My name is Ozymandias, king of kings</p>
<p>Look on my works, ye mighty, and despair!</p>
but who it was that said that, I cannot say. He has been
Similar fixes work for tables, lists, and other block elements you may find in a paragraph.
Blockquotes in Paragraphs
The prohibition on blockquotes within paragraphs is somewhat controversial. Irrespective of HTML, many
style manuals do recognize the presence of blockquotes within single paragraphs, and they do treat a
construct such as the preceding example as one paragraph that contains a blockquote rather than as a
sequence of paragraph-blockquote-paragraph. XHTML 2 has proposed to make it possible to embed
blockquotes within paragraphs.
Tidy can fix this if you use the --enclose-block-text yes option:
$ tidy -asxhtml -c --enclose-block-text yes example.html
Search WWH ::

Custom Search