在页面 SEO 上使用具有最少页面内容的 H2 标签
On page SEO use of H2 tags with minimal page content
客户希望 parent 页面的内容最少,只有包含指向 child 页面的链接的图像。
例如:
页面:蔬菜 |
Child 页:黄瓜、胡萝卜、卷心菜。**
考虑到 SEO 最佳实践,我应该在 mark-up h2 标题中使用,还是因为几乎没有其他内容我应该使用普通链接。
<h1> Vegetables</h1>
<div class="item"><img src="cucumber.jpg"> <a href="#"><h2> cucumber</h2></a></div>
<div class="item"><img src="carrot.jpg"> <a href="#"><h2> carrot</h2></a></div>
<div class="item"><img src="cabbage.jpg"> <a href="#"><h2> cabbage</h2></a></div>
只要每个h2之间有一些内容就可以了。否则你应该使用一个列表:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Simple example</title>
</head>
<body>
<header> <!-- Main header - Ignore if it isn't your case -->
<h1>Vegetables</h1>
</header>
<nav> <!-- Main navigation bar - Ignore if it isn't your case -->
<ul class="vegetables">
<li class="item"><a href="#" title="Cucumber">Cucumber</a></li>
<li class="item"><a href="#" title="Carrot">Carrot</a></li>
<li class="item"><a href="#" title="Cabbage">Cabbage</a></li>
</ul>
</nav>
</body>
</html>
在SEO中,需要遵循内容的结构。标题应该是 H1,包括网页的主要主题,或者您可以对网页内容说 keyword-relevant。 HTML 有六个不同的标题标签 — h1、h2 等等,直到 h6。
仅对内容应用 header 标签。您可以按照上面@JuanLeme 的建议应用列表。
客户希望 parent 页面的内容最少,只有包含指向 child 页面的链接的图像。
例如:
页面:蔬菜 |
Child 页:黄瓜、胡萝卜、卷心菜。**
考虑到 SEO 最佳实践,我应该在 mark-up h2 标题中使用,还是因为几乎没有其他内容我应该使用普通链接。
<h1> Vegetables</h1>
<div class="item"><img src="cucumber.jpg"> <a href="#"><h2> cucumber</h2></a></div>
<div class="item"><img src="carrot.jpg"> <a href="#"><h2> carrot</h2></a></div>
<div class="item"><img src="cabbage.jpg"> <a href="#"><h2> cabbage</h2></a></div>
只要每个h2之间有一些内容就可以了。否则你应该使用一个列表:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Simple example</title>
</head>
<body>
<header> <!-- Main header - Ignore if it isn't your case -->
<h1>Vegetables</h1>
</header>
<nav> <!-- Main navigation bar - Ignore if it isn't your case -->
<ul class="vegetables">
<li class="item"><a href="#" title="Cucumber">Cucumber</a></li>
<li class="item"><a href="#" title="Carrot">Carrot</a></li>
<li class="item"><a href="#" title="Cabbage">Cabbage</a></li>
</ul>
</nav>
</body>
</html>
在SEO中,需要遵循内容的结构。标题应该是 H1,包括网页的主要主题,或者您可以对网页内容说 keyword-relevant。 HTML 有六个不同的标题标签 — h1、h2 等等,直到 h6。
仅对内容应用 header 标签。您可以按照上面@JuanLeme 的建议应用列表。