IMAGE Tag
What It Does:
The IMAGE tag allows you to show a image on a HTML page.
The Syntax:
<img src:"dog.jpg" alt="Dog" height="50" width="50" />
This code becomes this:
- SRC is a mandatory attribute, it allows you to specify the URL of the image.
- ALT is another mandatory attribute, it provides text instead of an image in case a user is unable to view it for whatever reason.
- HEIGHT is a optional attribute, it allows you to set the height of the image in pixels.
- WIDTH is another optional attribute, it allows you to set the width of the image in pixels.