Added wording to clarify retrictions on children of p elements. #838
Conversation
@@ -165,6 +165,10 @@ | |||
This example still has five structural paragraphs, but now the author can style just the | |||
<code>div</code> instead of having to consider each part of the example separately. | |||
</div> | |||
|
|||
In general, elements that cannot be children of <{p}> elements includes any elements that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As elements is plural, I think includes should be include (no 's')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with @agcolom's change in it this looks good.
…hildren of p elements. (#838)
Could you clarify if this means that a |
The spec restricts which HTML elements can be used inside the |
But the way the note is written implies the use of CSS, doesn’t it?
Source: Section 4.4.1. These scenarios can only be achieved with CSS, not with HTML alone, as far as I know. |
Good point. Do you have suggested wording? If not I'll defer to @adanilo |
For me, it seems that the current wording still implies that CSS can somehow influence on whether these elements can be contained in the paragraph or not. Moreover, it might give the impression to a novice that HTML has the concept of "inline-block elements" and "inline-table elements", in addition to HTML 4 concepts of "block elements" and "inline elements" that are still widely used by many educational resources despite the fact that HTML5 replaced them with the "kinds of content" concept. Wouldn't it be better to stress the fact that CSS can't change the content model of the element at all, with some wording like this?
|
Addresses issue #763 for paragraph element description.