W3C home > Mailing lists > Public > public-html@w3.org > July 2011

Re: correct and incorrect uses of canvas

From: Kornel Lesiński <kornel@geekhood.net>
Date: Sun, 17 Jul 2011 19:07:14 +0100
To: "Andrew Fedoniouk" <news@terrainformatica.com>
Cc: "public-html@w3.org" <public-html@w3.org>
Message-ID: <op.vyrzacv3te2ec8@aimac.local>
On Sun, 17 Jul 2011 17:29:39 +0100, Andrew Fedoniouk  
<andrew.fedoniouk@live.com> wrote:

> Consider this SVG:
> http://terrainformatica.com/w3/flower.svg
>
> In HTML you can use that SVG for example as this:
> <img src="http://terrainformatica.com/w3/flower.svg" alt="flower" >
>
> We can  add to each <cicrcle> in that SVG attributes
> @alt="leaf" or @alt="petal" but will it help to anyone?

In case of a simple non-interactive images alt may suffice. However, SVG  
can be used for much more than that, e.g. infographics and charts, which  
contain text and data and may have buttons and other interactive elements.

Saying that <circle> is clickable would help, and would be improvement  
over just a circle drawn on canvas and hit-tested against mouse click with  
custom JS.

-- 
regards, Kornel Lesiński
Received on Sunday, 17 July 2011 18:07:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:36 GMT