List of HTML5 elements that can be nested inside a P element?

I am trying to understand all the valid HTML5 elements that can be nested inside paragraph elements, so the w3 validator does not show any errors. I mean, I'm trying to figure out all the tags that can replace dots in the following code, so the w3 validator does not show any errors:

<p>...</p> 

Is there such a list? I tried google search with no luck.

Even if a reverse list is available, that is, elements that cannot be nested inside paragraph elements, this is good enough for me.

+74
html html5 nested
Mar 24 2018-12-12T00:
source share
1 answer

The HTML5 specification tells us that the content model of the <p> element is phrased content . The content of the phrase is determined by the specification:

3.2.5.1.5 Phrase Content

The content of the phrase is the text of the document, as well as the elements that mark this text at a level inside the paragraph. Tasks of the phrase in the paragraph of the content form.

a (if it contains only the text of the phrase) abbr area (if it is a descendant of the map element) audio b bdi bdo br button canvas cite code command datalist del (if it contains only the phrase content) dfn em embed i iframe img input ins (if it contains only the text of the phrase) kbd keygen label map (if it contains only the text of the phrase) mark math meter noscript object output progress q ruby s samp script select small span strong sub sup svg textarea time u var video wbr text
+115
Mar 24 2018-12-12T00:
source share



All Articles