大网数据广告活动
网站运营与故障问答

SEO impact of breaking one nested menu into two flat menus

· 52CE 我爱测

So, I have a menu with this structure: <ul> <li> <a>First Level Menu item</a> <ul> <li><a>Second Level Menu Item</a></li> </ul> </li> </ul> And for design Purposes, I consider moving the second level menu out of the original menu…

问题原文

原帖链接 · xpy · CC BY-SA 3.0

So, I have a menu with this structure:

<ul>
  <li>
    <a>First Level Menu item</a>
    <ul>
      <li><a>Second Level Menu Item</a></li>
    </ul>
  </li>
</ul>

And for design Purposes, I consider moving the second level menu out of the original menu and create a new one:

<ul>
  <li>
    <a>First Level Menu item</a>
  </li>
</ul>
.
.
<ul>
  <li><a>Second Level Menu Item</a></li>
</ul>

I suspect that there will be an SEO impact since I will have two menus instead of one tree structured menu.

Will there be a negative SEO impact on that?

Is there a way that I can tell the crawler that those two menus are connected, or some how semantically connect them?

已采纳解答

原帖链接 · closetnoc · CC BY-SA 3.0

Okay. This gets a bit complicated. While no-one short of a search engineer can tell you what any search engine will do specifically, we know a few things based upon what Google tells us in a whole host of places. I will explain.

Google will parse the HTML DOM objects from top to bottom assigning each HTML element with an ID that will uniquely identify the HTML element, assign an order to the element, assign parent-child relationships between elements such as in ordered lists, and finally, when how one element relates to another such as paragraphs following a header. Using the IDs, the original HTML can be reconstructed as well as be referenced in semantic block elements and dependencies from one to another. Keep this in mind.

Also, keep in mind that Google will compare pages to know what HTML DOM elements exist on several or all pages so that it can properly identify content from other elements such as header, navigation, side-bar, footer, etc.

Semantics is based upon this.

Taking what we know, both of your list elements will be taken as templated HTML DOM elements separate from content. Your first list will be given more importance simply because it appears first, however, since you are using list elements (at least in your example), the importance difference would be small. Your example does not use the nav tag. I invite people to comment if this tag is necessary or important. I use it.

It may be to your advantage to use the tag to signal that both lists are navigation. The tag may help search engines see your navigation properly. Search engines, consider navigation as very important signals to your most important pages. Using the tag, in theory, should tie your two list elements semantically as important (navigation) DOM elements and weigh them higher than (templated) content elements.

While I am a believer that navigation should be as simplified as possible to avoid issues, I rather suspect that your two list elements should be seen okay. I prefer a single list element, however, I rather suspect having two lists should be fine. Just know that it is very possible that the second list element would be seen as less important, though not much. For this reason, be careful to keep this in mind and organize your links accordingly.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2016-06-15)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。