Hello!
My question is mostly about coding style, I suppose.
The HTML living standard gives examples like:
<blockquote>
<p>[Jane] then said she liked [...] fish.</p>
</blockquote>
Elements like <p>
, <blockquote>
and <pre>
are all grouped together in a single category named grouping content.
Maybe I got it wrong but don’t they all introduce a block content (by the original definition)? Is it really necessary to wrap the content of <blockquote>
in <p>
? Firefox 108 seems to display it just fine and the DOM tree looks okay as well. We wouldn’t do something like
<pre>
<p>sudo apt update</p>
</pre>
would we? The inner <p>
tags appear to be superfluous. Is it a matter of preference or is there a not-so-obvious (at least to me) behavior under the hood? Does omitting them as shown below affect something?
<blockquote>[Jane] then said she liked [...] fish.</blockquote>