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

[whatwg] ALT and equivalent representation

From: Křištof Želechovski <giecrilj@stegny.2a.pl>
Date: Mon, 28 Apr 2008 22:38:29 +0200
Message-ID: <004901c8a96f$d4f52a00$4d01010a@IBM42F76C011DF>
Or even <img src=11100 alt=3/5>

-----Original Message-----
From: whatwg-bounces@lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Bill Mason
Sent: Saturday, April 19, 2008 10:14 PM
To: Simon Pieters
Cc: whatwg at whatwg.org
Subject: Re: [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 Monday, 28 April 2008 13:38:29 UTC

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