Lesson 5: Images and Links

Images can be included in pages also, using the image element, <img src="..." />. The image below is a JPEG file. It is named "stamp.jpg" and it is located in the images subdirectory of the one where this page is located. To include this image in the page, I need to include the line
       <img src="images/stamp.jpg" alt="Stamp image"/>
in the place where I want the image to be displayed.

Stamp

Later we will see how to control the size and position of images. The "alt=" notation will also be displayed in a later lesson.

A link is defined with the anchor tag, <a>. Here is an example: A link to the first page of this tutorial

The previous link opened in the same window as the page. The following link will open in a new window, or a new tab if the browser is set to open windows in new tabs: A link to the first page of this tutorial