GOOD WEB PAGE DESIGN�Images.
Image inspection
Images in a web page:
IMPORTANT:
Inserting an image in a web page:
Image tag:
<img> </img>
Attribute for an image tag:
src
The value for a link attribute:
=”image name.extention”
The syntax for an image is:
<img src =”image name.extention”>
Example of an image that’s going to be inserted in a html document:
<img src =”blue bull.jpg” alt=”Blue Bull Rugby”> > </img>
The alt attribute is not compulsory. It will appear on the page where the image should be, if the image, for some reason, doesn’t want to load.
The src attribute indicates the source of the image.
Classroom activity 1: Insert an image
IMPORTANT:
If it’s not inside the main web page folder, it will not be able to be used in the web page!!
Adjusting the width and height of an image:
IMPORTANT:
Width and height are measured in “pixels”.
Adding the width and height attributes:
<img src =”image name.extention” width=”pixels” height=”pixels”> </img>
Insert it after the picture name.
Classroom activity 2: Adjust the size of an image.
Classroom activity 3: Insert and adjust more pictures.
TIP: If you add all the images next to each other in Notepad++, it will appear next to each other in the web page.
Solution: CAPE TOWN.html
THE END