Access 1.1.1.10

From Htmlpedia
Jump to: navigation, search

Access: [1.1.1.10]: suspicious 'alt' text (too long) (Priority 1)

Cause:

All images require text equivalents, but "alt" text must also meet certain criteria. Unusually long alt text may be considered suspicious, because it could potentially be part of an attempt to hijack the web browser. If "alt" text exceeds 150 characters, use the "longdesc" attribute along with a descriptive link (d-link) to describe the image.

Example:

Bad
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<title>aert1.0/1.1.1</title>
</head>
<body>
<img
      src="A_in_W_Page42.gif" 
      alt="changed since her swim in the pool, and the great hall, with the glass table 
      and the little door, had vanished completely.

      Very soon the Rabbit noticed Alice, as she went hunting about, and called out to her in 
      an angry tone, 'Why, Mary Ann, what are you doing out here? Run home this moment, and 
      fetch me a pair of gloves and a fan! Quick, now!' And Alice was so much frightened that 
      she ran off at once in the direction it pointed to, without trying to explain the mistake 
      it had made.

      'He took me for his housemaid,' she said to herself as she ran. 'How surprised he'll be 
      when he finds out who I am! But I'd better take him his fan and gloves--that is, if I 
      can find them.' As she said this, she came upon a neat little house, on the door of which 
      was a bright brass plate with the name 'W. RABBIT' engraved upon it. She went in without 
      knocking, and hurried upstairs, in great fear lest she should meet the real Mary Ann, and be"
/>
</body>
</html>
Good
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<title>aert1.0/1.1.1</title>
</head>
<body>
<img
      src="A_in_W_Page42.gif" 
      alt="Page 42 of 'Alice in Wonderland,' first edition"
      longdesc="changed since her swim in the pool, and the great hall, with the glass table 
      and the little door, had vanished completely.

      Very soon the Rabbit noticed Alice, as she went hunting about, and called out to her in 
      an angry tone, 'Why, Mary Ann, what are you doing out here? Run home this moment, and 
      fetch me a pair of gloves and a fan! Quick, now!' And Alice was so much frightened that 
      she ran off at once in the direction it pointed to, without trying to explain the mistake 
      it had made.

      'He took me for his housemaid,' she said to herself as she ran. 'How surprised he'll be 
      when he finds out who I am! But I'd better take him his fan and gloves--that is, if I 
      can find them.' As she said this, she came upon a neat little house, on the door of which 
      was a bright brass plate with the name 'W. RABBIT' engraved upon it. She went in without 
      knocking, and hurried upstairs, in great fear lest she should meet the real Mary Ann, and be"
/>
</body>
</html>

Solution:

Put your long descriptions in a longdesc attribute instead of the alt attribute.

References: