[whatwg] ALT and equivalent representation
Bill Mason
whatwg at accessibleinter.net
Sat Apr 19 13:13:51 PDT 2008
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=★><img src=1 alt=★><img src=1
alt=★><img src=0 alt=☆><img src=0 alt=☆></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/
More information about the whatwg
mailing list