WEB1019 - <img> 或 <area> 标记的“alt”属性包含太多字符
alt 属性不应超过 150 个字符。
说明
图像映射的每个 <img>
和 <area>
标记都应包含一个以不超过 150 个字符描述图像的 alt 属性。
请确保每个图像都有准确反映该图像所表示内容的相关描述性 alt 属性文本。
详细信息
请考虑使用与图像相关的描述性关键字。过多的 alt 属性文本可能会导致搜索引擎将网页标记为待审阅,以确保该网页未使用欺诈技术来人为地提高其排名。
有关对“SEO 检查器”中的规则参数进行自定义的信息,请参阅 Customizing SEO rules(自定义 SEO 规则) 。
示例
下面是 <img>
标记中格式正确的 alt 属性的示例。
<img src="https://www.proseware.com/images/reader_in_action.png" alt="A computer screen showing the Proseware reader in operation. Image copyright (c) 2009.">
<img src ="menu.gif" width="300" height="120" alt="Planets" usemap="#menumap" />
<map name="menumap">
<area shape="rect" coords="0,0,99,120" href="index.html" alt="Home" />
<area shape="rect" coords="100,0,199,120" href="products.htm" alt="Products" />
<area shape="rect" coords="200,0,300,120" href="about.htm" alt="About Us" />
</map>