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
原文地址:https://www.jb51.cc/html/230351.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。