01_img.html
Images are defined using an IMG element. This comprises a tag along with src and alt attributes. This page contains the most basic valid img element.
Experiment
- Open the source code in an editor and reload this page as necessary.
- What happens if newlines are added/removed within the element?
- What happens when the
src url is changed? - Try
src="800x200", src="800x800", or something unexpected like src="eSp1nQ".
- What happens when the mouse is hovered over the image?
- What happens if quotation marks are removed from around the
src attribute?
- What happens if quotation marks are removed from around the
alt attribute?
- How might the
title attribute help us?