在HTML5中,页脚标记中包含节标记可以吗?
我不熟悉HTML5标记 我想知道是否允许我在页脚内有一个节标记,如下所示在HTML5中,页脚标记中包含节标记可以吗?,html,Html,我不熟悉HTML5标记 我想知道是否允许我在页脚内有一个节标记,如下所示 <article> <header class="content__header"> </header> <section class="content__body"> </section> <footer class="content__footer> <section class="
<article>
<header class="content__header">
</header>
<section class="content__body">
</section>
<footer class="content__footer>
<section class="relatedArticles">
</section>
<section class="pagination">
</section>
</footer>
</article>
w3c文档没有对页脚标记的用法做太多解释
…事实上,的确如此。第4.3.8节
()规定:
内容模型:,但没有页眉、页脚或主元素子体
,其中列出了
因此,您的HTML是有效的:
可以是
的后代,但是
、
和
不能。简单地说,是的。完全有效的HTML5。根据第节,在预期的位置有效。所以它是完全有效的。“w3c文档没有解释太多关于页脚标记的用法。”你确定吗?我看到很多例子。