HTML标头标签需要按顺序排列 [英] Do HTML header tags need to go in order

查看:170
本文介绍了HTML标头标签需要按顺序排列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HTML标头标签需要按顺序排列吗?或者我可以有< h1> ,然后是< h1>



这会影响SEO吗?或者抓取工具不关心他们的顺序?



我问,因为我有一个侧边栏div出现在我的主要内容div之前。这个侧边栏有几个子标题栏(如推箱,联系方式等)这些标题显然应该是< h2> 。但我的主要内容(包含一些< h1> 元素)在文档中显示得更低。

>解决方案

虽然人们很快会回应,标题标签不需要按顺序(这是正确的),并且它不会影响搜索引擎优化(这也是正确的),但您应该注意像谷歌这样的搜索引擎使用标题标签来帮助定义他们的昵称,这可以大大增加(或减少)到您网站的流量,具体取决于这些标题标签中的信息,因为这是人们在搜索后几秒钟内会看到的内容。



请阅读以下两个链接: http://www.hobo-web.co.uk/seo-blog/google-will-use-h1h2h3h4h5-h6-headers-as-titles-for-page-snippet/rel =noreferrer> http:/ /www.hobo-web.co.uk/seo-blog/google-will-use-h1h2h3h4h5-h6-headers-as-titles-for-page-snippet/

  • http://www.hobo-web.co.uk/seo-blog/headers/


  • Do HTML header tags need to go in order? Or can I have an <h1>, followed by an <h1>?

    Does this affect SEO? Or do crawlers not care what order they're in?

    I ask because I have a sidebar div which appears before my main content div. This sidebar has a few sub-boxes (such as a twitter box, contact box, etc.) with headers; these headers should obviously be <h2>. But my main content, containing a number of <h1> elements, appears lower down in the document.

    解决方案

    Although people are quickly going to respond that header tags do not need to be in order (which is correct) and that it won't affect SEO (which is also correct), you should note that search engines like Google use header tags to help define their snippits which can greatly increase (or decrease) traffic to your site depending on what information is within those header tags because that is what people will be seeing in those few seconds after a search.

    Read more at the following two links:

    这篇关于HTML标头标签需要按顺序排列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆