WEB1019 - <img> 或 <area> 標籤的 'alt' 屬性包含太多字元
alt 屬性不能超過 150 個字元。
說明
影像地圖的每個 <img>
和 <area>
標籤都應包含 alt 屬性,以 150 個以內的字元描述影像。
請確定每個影像都有相關且具描述性的 alt 屬性,能夠精確反映影像的內容。
詳細資料
請考慮使用可描述且與影像相關的關鍵字。若 alt 屬性文字過長,搜尋引擎可能會將網頁標示為需要審核,以確定該網頁沒有使用欺騙技巧以投機方式來提升排名。
如需有關自訂 SEO 檢查程式中規則參數的詳細資訊,請參閱自訂 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>