我试图找出所有可以嵌套在段落元素中的有效HTML5元素,以使w3验证程序不会显示任何错误。我的意思是我正在尝试找出所有可以替换以下代码中的点的标记,以便w3验证程序不显示任何错误:
<p>...</p>
有这样的清单吗?我尝试在Google上搜索时没有任何运气。
即使有相反的列表,即不能嵌套在段落元素中的元素,对我来说也足够了。
HTML5规范告诉我们,<p>元素的内容模型正在对content进行措辞。短语内容由规范定义:
<p>
### 3.2.5.1.5短语内容
短语内容是文档的文本,以及在段落内级别标记该文本的元素。段落内容的表述方式。
[a](http://dev.w3.org/html5/spec/single-page.html#the-a-element)
[abbr](http://dev.w3.org/html5/spec/single-page.html#the-abbr-element)
[area](http://dev.w3.org/html5/spec/single-page.html#the-area- element)
[map](http://dev.w3.org/html5/spec/single-page.html#the-map- element)
[audio](http://dev.w3.org/html5/spec/single-page.html#the-audio-element)
[b](http://dev.w3.org/html5/spec/single-page.html#the-b-element)
[bdi](http://dev.w3.org/html5/spec/single-page.html#the-bdi-element)
[bdo](http://dev.w3.org/html5/spec/single-page.html#the-bdo-element)
[br](http://dev.w3.org/html5/spec/single-page.html#the-br-element)
[button](http://dev.w3.org/html5/spec/single-page.html#the-button- element)
[canvas](http://dev.w3.org/html5/spec/single-page.html#the-canvas- element)
[cite](http://dev.w3.org/html5/spec/single-page.html#the-cite-element)
[code](http://dev.w3.org/html5/spec/single-page.html#the-code-element)
[command](http://dev.w3.org/html5/spec/single-page.html#the-command-element)
[datalist](http://dev.w3.org/html5/spec/single-page.html#the-datalist- element)
[del](http://dev.w3.org/html5/spec/single-page.html#the-del-element)
[dfn](http://dev.w3.org/html5/spec/single-page.html#the-dfn-element)
[em](http://dev.w3.org/html5/spec/single-page.html#the-em-element)
[embed](http://dev.w3.org/html5/spec/single-page.html#the-embed-element)
[i](http://dev.w3.org/html5/spec/single-page.html#the-i-element)
[iframe](http://dev.w3.org/html5/spec/single-page.html#the-iframe- element)
[img](http://dev.w3.org/html5/spec/single-page.html#the-img-element)
[input](http://dev.w3.org/html5/spec/single-page.html#the-input-element)
[ins](http://dev.w3.org/html5/spec/single-page.html#the-ins-element)
[kbd](http://dev.w3.org/html5/spec/single-page.html#the-kbd-element)
[keygen](http://dev.w3.org/html5/spec/single-page.html#the-keygen- element)
[label](http://dev.w3.org/html5/spec/single-page.html#the-label-element)
[map](http://dev.w3.org/html5/spec/single-page.html#the-map-element)
[mark](http://dev.w3.org/html5/spec/single-page.html#the-mark-element)
[math](http://dev.w3.org/html5/spec/single-page.html#math)
[meter](http://dev.w3.org/html5/spec/single-page.html#the-meter-element)
[noscript](http://dev.w3.org/html5/spec/single-page.html#the-noscript-element)
[object](http://dev.w3.org/html5/spec/single-page.html#the-object- element)
[output](http://dev.w3.org/html5/spec/single-page.html#the-output- element)
[progress](http://dev.w3.org/html5/spec/single-page.html#the-progress- element)
[q](http://dev.w3.org/html5/spec/single-page.html#the-q-element)
[ruby](http://dev.w3.org/html5/spec/single-page.html#the-ruby-element)
[s](http://dev.w3.org/html5/spec/single-page.html#the-s-element)
[samp](http://dev.w3.org/html5/spec/single-page.html#the-samp-element)
[script](http://dev.w3.org/html5/spec/single-page.html#the-script-element)
[select](http://dev.w3.org/html5/spec/single-page.html#the-select-element)
[small](http://dev.w3.org/html5/spec/single-page.html#the-small-element)
[span](http://dev.w3.org/html5/spec/single-page.html#the-span-element)
[strong](http://dev.w3.org/html5/spec/single-page.html#the-strong-element)
[sub](http://dev.w3.org/html5/spec/single-page.html#the-sub-and-sup-elements)
[sup](http://dev.w3.org/html5/spec/single-page.html#the-sub-and-sup-elements)
[svg](http://dev.w3.org/html5/spec/single-page.html#svg)
[textarea](http://dev.w3.org/html5/spec/single-page.html#the-textarea-element)
[time](http://dev.w3.org/html5/spec/single-page.html#the-time-element)
[u](http://dev.w3.org/html5/spec/single-page.html#the-u-element)
[var](http://dev.w3.org/html5/spec/single-page.html#the-var-element)
[video](http://dev.w3.org/html5/spec/single-page.html#the-video-element)
[wbr](http://dev.w3.org/html5/spec/single-page.html#the-wbr-element)