Adding Images - Chapter 6
Adding Images
Adding images to a website is easy. You need two things:
You need to tell the browser where to get the image; you need to tell it where the source of the image is.
You also need to use the <img> element in your HTML code.
When you use the <img> element you have to add the additional information about where the image can be found, so you add something called “attributes” to the <img> element. Attributes give additional information to a browser about an element. So for an <img> element you would write:
<img src=“filename.png” alt=“Short description for those who aren’t able to view it”>
*Images may be used for this purpose only, completion of this exercise.
Refer to the course booklet for the code for Exercise #6.