[whatwg] ALT and equivalent representation

Simon Pieters wrote:
> For instance it would be reasonable to use two images -- a filled star 
> and an unfilled star -- to represent a rating of something:
> 
>    <p>Rating: <img src=1><img src=1><img src=1><img src=0><img src=0></p>
> 
> You'd want the text version to be:
> 
>    Rating: 3/5

There would probably be the argument for more literal interpretations 
(not that I would automatically subscribe to any of them as correct), 
such as

Rating: (3 black stars in unicode) (2 white stars in unicode)

Rating: *** (or 3 stars of some sort in unicode) (if the context of the 
page already established that ratings were on a scale of 5)

> Hence:
> 
>    <p>Rating: <img src=1 alt=3/5><img src=1 alt><img src=1 alt><img
>    src=0 alt><img src=0 alt></p> 

Or

<p>Rating: <img src=1 alt=&#9733;><img src=1 alt=&#9733;><img src=1 
alt=&#9733;><img src=0 alt=&#9734;><img src=0 alt=&#9734;></p>

<p>Rating: <img src=1 alt=*><img src=1 alt=*><img src=1 alt=*><img src=0 
alt><img src=0 alt></p>

-- 
Bill Mason
Accessible Internet
whatwg at accessibleinter.net
http://accessibleinter.net/

Received on Saturday, 19 April 2008 13:13:51 UTC