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


i trying figure valid html5 elements can nested inside paragraph elements such w3 validator doesn't show errors. mean trying figure tags can replace dots in following code such w3 validator doesn't show errors:

<p>...</p> 

is there such list available? tried searching on google without luck.

even if converse list available, i.e. elements can not nested inside paragraph elements, enough me.

the html5 spec tells <p> element's content model phrasing content. phrasing content defined spec:

3.2.5.1.5 phrasing content

phrasing content text of document, elements mark text @ intra-paragraph level. runs of phrasing content form paragraphs.

  • a (if contains phrasing content)
  • abbr
  • area (if descendant of map element)
  • audio
  • b
  • bdi
  • bdo
  • br
  • button
  • canvas
  • cite
  • code
  • command
  • datalist
  • del (if contains phrasing content)
  • dfn
  • em
  • embed
  • i
  • iframe
  • img
  • input
  • ins (if contains phrasing content)
  • kbd
  • keygen
  • label
  • map (if contains phrasing content)
  • 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

  • Comments

    Popular posts from this blog

    java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

    reactjs - React router and this.props.children - how to pass state to this.props.children -

    Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -