Embedded Image | WebReference

Embedded Image

HTML 4.01 Element Reference

By Lee Underwood

Return to HTML 4.01 element index page

Name: Embedded Image

<img>

Description: Embeds an image into a document at the location of the element.

Browser Compatibility: NN: 1.0+ / IE: 2.0+ / Opera: 4+

Attributes:
  • align*
  • alt
  • border*
  • class
  • dir
  • height
  • hspace*
  • id
  • ismap
  • lang
  • longdesc
  • onclick
  • ondblclick
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmousemove
  • onmouseout
  • onmouseover
  • onmouseup
  • src
  • style
  • title
  • usemap
  • vspace*
  • width

* Deprecated

Code Example:

<img src="yourimage.gif" alt="This is my image">

XHTML Notes: Because it is an empty element, the XHTML 1.0 specification requires a trailing slash: <img />




Created: March 15, 2005

URL: http://webreference.com/html/reference/specs/