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

Using topic titles as img alt text on a forum?

· 52CE 我爱测

I have a (mostly) standard phpBB forum so right now, images that are posted in [IMG] BB-tags don't have an alt text. I would like to change this and I'm doubting between two options: Use the topic title as alt text Use the most u…

问题原文

原帖链接 · Ivo van der Veeken · CC BY-SA 3.0

I have a (mostly) standard phpBB forum so right now, images that are posted in [IMG] BB-tags don't have an alt text. I would like to change this and I'm doubting between two options:

  1. Use the topic title as alt text
  2. Use the most used words in the first post as alt text (I have a mod installed that sets those words as meta keywords)

A page has a maximum of 30 posts and the subforums that have a lot of pictures aren't accessible to Google. So at most, I think there will be 5 images per page. Is using the same alt text 5 times bad SEO-wise? Is there anything else I can do to get the right keywords to add?

已采纳解答

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

The image alt attribute is used to describe an image when the image cannot be rendered. It is also used by 'screen reader' software where the content of the website is read out aloud, usually for users who's sighting is impaired.

So the alt attribute should be descriptive of the actual image:

e.g:

<img src="sunset.jpg" alt="photo of a sunset over the ocean">

So unless the topic title or the most used words accurately describe the image, you should not be using either of these solutions. They would be unhelpful and if just using a list of keywords, could potentially be seen as keyword stuffing by Google.

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

资料来源与适用范围

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

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

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