A brief introduction to HTML
|
More about attributes: an example
-
Here's an image:
- We write it like this: <img
src="images/scaffie-logo-sm.png" alt="[Scaffie
logo]"/>
-
It has an attribute called src
- whose value is
images/scaffie-logo-sm.png
- it says where the image is to be fetched
from
-
It has an attribute called alt
- whose value is [Scaffie logo]
- it says what to show if the image can't be
loaded.
- An image tag is empty, so it has the trailing slash.