Re: correct and incorrect uses of canvas

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 UTC