HTML <img> tag

Usage

Used to insert an image into a web page.

Example

Code:

<img src="/images/car.jpg" alt="A car" />

Required Attributes

  • alt - alternative text
  • src - source URL of the image to load

Optional Attributes

  • height - specify the height of the image
  • ismap - URL of a server-side image map
  • longdesc - URL of a page that provides a full explanation of the image
  • usemap - defines a client-side image map to use
  • width - defines the width of the image

Core Attributes