The 5-Part Image Element
As stated in the introduction, the image element is a multi-part element comprised of several “commands” over how the image will render.
The 5 attributes an image element should include are:
- The tag itself.
- The source attribute.*
- Alternative text.*
- The image itle.
- Width and height values (which also can be accomplished with the style attribute).
Important *The source (
src="") and alternative text (
alt="") attributes are required in the image element.