W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2008

[whatwg] ALT and equivalent representation

From: Bill Mason <whatwg@accessibleinter.net>
Date: Sat, 19 Apr 2008 13:13:51 -0700
Message-ID: <480A527F.8090905@accessibleinter.net>
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> 


<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
Received on Saturday, 19 April 2008 13:13:51 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:01 UTC