spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

C/C++ Developer (NYC)
Next Step Systems
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume
Developer News
Eclipse Helios Update Brings New PHP Tools
Internet Explorer 9 Ups Standards Support
JBoss Portal 5 Release Easier to Use


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 />




Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

webref The latest from WebReference.com Browse >
Building an Ajax-driven File Uploader · Creating an ASP.NET Registration and Confirmation System · Combine Ajax and JSON to Transmit Complex Presentation Data
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
IBM DB2 LUW Security Helps DBAs Beat the Odds · Live Migration Brings High Availability to Windows · A Simpler Solution for VoIP Phone Calls?

Created: March 15, 2005

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