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

How do I correctly use h2 tags given that Google says to not overuse them?

· 52CE 我爱测

I am confused about when I should use a h2 tag and when I should avoid it. Like most commercial websites I have a product list page. 24 products are divided into 6 rows of 4 columns each. The product is displayed in a 'card'. I a…

问题原文

原帖链接 · Bo Terham · CC BY-SA 4.0

I am confused about when I should use a h2 tag and when I should avoid it.

Like most commercial websites I have a product list page. 24 products are divided into 6 rows of 4 columns each. The product is displayed in a 'card'. I am doubting if each card title (so each product title) should be a h2 tag or if it should be just a p tag.

On one hand, 24 h2 tags seems like overuse to me. On the other hand, each product is just as important as the next one, and it is the main content of the page. I would like to know what is the correct approach in this instance.

Besides products I also have a blog page, where I often write articles in the form of "5 tips do task x". Each subheading is a h2 tag. Is this also overuse or is it correct use?

已采纳解答

原帖链接 · Peter206 · CC BY-SA 4.0

In my understanding, there should be one h1 title on the top of the page and then h2 titles over main (sub-)sections of a page. Under each h2 heading comes the content, which should be more than just 1 item or 1 sentance usually.

When you have a list of products in tabular format as you describe it, putting h2 for each of 24 product seems to be overdoing it.

I suppose your goal is to make it possible to search for each of these products and for that putting its name in h2 might be useful.

If you changed your page so that the table can have sections for each product which can be opened up (e.g. with summary details tags on the same page or via hyperlink on a new page) then there is a place to put the product as a heading, as you provide a lot of details to your product.

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

资料来源与适用范围

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

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

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