在 SEO 方面...
把 scheme(协议)放在包含所有链接的父元素中是最好的吗?
<nav itemscope="itemscope" itemtype="http://www.schema.org/SiteNavigationElement">
<a href="#">Link 1</a>
<a href="#">Link 2</a>
<a href="#">Link 3</a>
</nav>
...或者每个链接应该被视为它自己的元素?
<nav>
<span itemscope="itemscope" itemtype="http://www.schema.org/SiteNavigationElement">
<a itemprop="url" href="#">
<span itemprop="name">Link 1</span>
</a>
</span>
<span itemscope="itemscope" itemtype="http://www.schema.org/SiteNavigationElement">
<a itemprop="url" href="#">
<span itemprop="name">Link 2</span>
</a>
</span>
<span itemscope="itemscope" itemtype="http://www.schema.org/SiteNavigationElement">
<a itemprop="url" href="#">
<span itemprop="name">Link 3</span>
</a>
</span>
</nav>
<body id="app-layout" itemscope itemtype="http://schema.org/WebPage">
,那么我是否需要在导航中添加itemprop
?如果是的话,导航中的itemprop
值应该是什么? - alexWebPage hasPart SiteNavigationElement
。但是,除非您有特定的原因,我建议不要提供任何“SiteNavigationElement”。 - unorSiteNavigationElement
?使用它有什么问题吗? - alex