Vai al contenuto

Web Science/Part1: Foundations of the web/Web content/Media content/script

Da Wikiversità, l'apprendimento libero.

Including Media content

Make sure that you do not only provide a media file like this:

 <img src="gollum.jpg"/>

But also include an alternative text ("Gollum from LOTR") if the media file cannot be loaded or the user cannot access the media content (e.g. because of bad eye sight he uses a screen reader) and a title for mouse over like this:

<img src="gollum.jpg" alt="Gollum from LOTR title=“Beware!“/>

You can also use an anchor to make it a link:

<a href=“http://thereyougo.com“>
<img src="gollum.jpg" alt="Gollum from LOTR title=“Beware!“/></a>