Day 5: Image’s in HTML (2)
<IMG SRC=“” ALT=“”>The ALT attribute sets the Alternative text for an image (you see that if you hover the pointer over the image, or if the image isn’t there yet). It is good practice to always set an alternative text. For example:<IMG SRC=“myface.gif” ALT=“A close-up of JJ”>
<IMG SRC=“” ALT=“” WIDTH=x HEIGHT=x>Another good practice is to include the exact sizes of your image - it will make it easier for the browser to calculate how to display the page and setting these dimensions often displays (parts of) the page a lot faster.The width and height is in pixels - a drawing package should be able to tell you the dimensions (or you can use Netscape’s View Info). For example: <IMG SRC=“myface.gif” ALT=“A close-up of JJ” WIDTH=100 HEIGHT=123>