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
Cosa stanno leggendo gli altri:
Se ti va di metterti alla prova, facciamo una pausa di lettura. Giochiamo insieme e sblocca lo sconto del 50% sui miei eBook. Ho preparato una piccola sfida per te che sei tra lettori più attenti.
Gioca e ottieni il 50% di sconto
Inserisci l'email, accetta la privacy e vai al quiz. Rispondi correttamente alle 3 domande e ricevi via email l'offerta esclusiva.






