Parliamo di Digital Coach Web Design, 29 secondi di lettura

Correct use of ALT attribute

A weird behavior of Internet Explorer for Windows regarding image alt attribute makes web designers and developers to think that image’s alt attribute was meant to associate a tool-tip text …


Non ti va di leggere? Prova ad ascoltare l'articolo in modalitá audio 🎧

Puoi leggerlo con calma, sul tuo dispositivo, in PDF.


A weird behavior of Internet Explorer for Windows regarding image alt attribute makes web designers and developers to think that image’s alt attribute was meant to associate a tool-tip text for an image resource.
Instead, alt attribute should be used by the browser as a placeholder when the image is not yet loaded or not available (think about screen readers or text-only browsers).
If you want to display a tool-tip while user hovers her mouse on the image just use the title attribute, as shown in the example below.
< img src="sea.jpg" width="300" height="200" alt="Sea photo" title="Hawaian sea, April 2003">
Thanks to Lawrence Oluyede

Se ti é piaciuto l'articolo condividilo su        
Ti invito poi a lasciare un commento.
Per approfondire il tema Digital Coach Web Design, unisciti gratis alla community, oppure...


Paolo Franzese
Sono un Digital Coach con piú di 25 anni di esperienza.
Ti aiuto a crescere sul Web facendo ció che ami.

Hai bisogno di aiuto? Scegli nello shop tra i miei servizi personalizzati.


Ci sono 0 commenti.

Nessun commento ancora.

Lascia un commento

Commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *