任何网页中是否必须至少有一个“H1”?

发布于 2024-08-29 06:41:39 字数 123 浏览 8 评论 0原文

任何网页中是否必须至少有一个H1?在可访问性语义搜索引擎优化方面。

Is it necessary to have at least one H1 in any web page? in terms of accessibility, semantics and SEO.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

帅哥哥的热头脑 2024-09-05 06:41:39

这不是必需的。对其他标签提出同样的问题,是否有必要有一个 < H2>标签?

话虽如此,< h1>标签是主标题,因此如果样式正确,应该为您的页面添加一个主要焦点。

It is not necssary. Ask the same question about other tags, is it necessary to have a < H2 > tag?

That being said, the < h1 > tag is meant as the main heading, so if styled correctly should add a main focus point to your page.

怀念你的温柔 2024-09-05 06:41:39

是的,没有必要,但也不是没有必要。我的意思是从技术上讲,没有必要有 img 标签或 a 标签。如果你不想真正懂技术,你甚至不需要 html 标签,大多数浏览器仍然会渲染页面,但这是非常糟糕的做法。 H1 标签实际上很有用,特别是对于 css,作为附加的 p 标签。

Yeah It's not necessary however it's not unnecessary. I mean technically its not necessary to have img tags or a tags for that matter. And if you wan't to be really technical, you don't even NEED html tags most browsers will still render the page, but that's extremely bad practice. H1 tags cab be useful actually, specificially with css, as an additional p tag.

还给你自由 2024-09-05 06:41:39

不一定要有至少一个,但有必要按照 seo 人员的建议不要放置多个

标签。

It is not necessary to have at least one but it is necessary as advocated by seo guys not to put more than one <h1> tag.

琉璃梦幻 2024-09-05 06:41:39

仅用于搜索引擎优化。
人们认为(为了在谷歌中获得高排名)页面的文本链接应该在

< 中找到。 /title></code> 并且应该在文本中出现几次。

only for seo.
it is THOUGHT (for high rankings in google) that the TEXT LINK TO a page should be found in the <h1></h1> AND in the <title></title> and should come up a couple of time in the text.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文