gpt4 book ai didi

html - 在 html5 中,您可以在页脚中添加

吗?

转载 作者:太空宇宙 更新时间:2023-11-04 16:22:42 25 4
gpt4 key购买 nike

我已经查看了所有内容,但还没有找到任何可以专门回答这个问题的内容:在 html5 中,在页脚中放置一个 h1 标签在语义上是否可行?我知道您现在可以在一个文档中有多个 h1,但我正在处理一个涉及带标题的页脚的项目,并且关于这是否是语义的存在一些争论。

最佳答案

footerh1 标签没有什么相互排斥的。事实上,您甚至可以有多个页脚。

查看 footer 的 W3C HTML 标准最后代码示例: 它包含一个里面的 h1:

Some site designs have what is sometimes referred to as "fat footers" — footers that contain a lot of material, including images, links to other articles, links to pages for sending feedback, special offers... in some ways, a whole "front page" in the footer.

This fragment shows the bottom of a page on a site with a "fat footer":

...
<footer>
<nav>
<section>
<h1>Articles</h1>
...

关于html - 在 html5 中,您可以在页脚中添加 <h1> 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27974879/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com