The <img> tag defines an image in an HTML page.
Supported In HTML4: Yes
Supported In HTML5: Yes
HTML4 vs HTML5 Differences:
Attributes
| Title | Values | Description | HTML4 Support | HTML5 Support |
| alt | text | Defines a short description of the image. | Yes | Yes |
| src | URL | The URL of the image to display. | No | No |
| height | pixels % | Defines the height of an image. | No | No |
| ismap | URL | No | No | |
| usemap | URL | Defines the image as a client-side image map. Look at the <map> and <area> tags to figure out how it works. | No | No |
| width | pixels % | Sets the width of an image. | No | No |
Standard Attributes
All standard attributes are supported.
Event Attributes
All event attributes are supported.
HTML5 Tags
- a
- abbr
- acronym
- address
- applet
- area
- article
- aside
- audio
- b
- base
- basefont
- bdo
- big
- blockquote
- body
- br
- button
- canvas
- caption
- center
- cite
- code
- col
- colgroup
- command
- datalist
- dd
- del
- details
- dfn
- dir
- div