在表th或td标签中允许使用H1(HTML标题)吗?

在表th或td标签中允许使用H1(HTML标题)吗?,第1张

概述TLDR:不允许. 我在这里找到我的答案: Permitted parent elements for h1: Any element that can contain flow elements, hgroup. 资料来源:https://www.w3.org/TR/html-markup/h1.html和https://www.w3.org/TR/html-markup/th.html HTM TLDR:不允许.

我在这里找到我的答案:

Permitted parent elements for h1: Any element that can contain flow elements,
hgroup.

资料来源:https://www.w3.org/TR/html-markup/h1.html和https://www.w3.org/TR/html-markup/th.html

解决方法 HTML living standard表示禁止这个. th element内容模型如下(重点增加):

Flow content,but with no header,footer,sectioning content,or heading content descendants.

“Heading content”是指h1,h2等元素,以及hgroup元素:

heading content defines the header of a section (whether explicitly
marked up using sectioning content elements,or implIEd by the heading
content itself).

h1 h2 h3 h4 h5 h6 hgroup

总结

以上是内存溢出为你收集整理的在表th或td标签中允许使用H1(HTML标题)吗?全部内容,希望文章能够帮你解决在表th或td标签中允许使用H1(HTML标题)吗?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1098689.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-28
下一篇 2022-05-28

发表评论

登录后才能评论

评论列表(0条)

保存