img tag (HTML 4.01)

Embedded image

Topics

Attributes

Attribute Deprecated Required Description
alignX vertical or horizontal alignment 
alt Xshort description 
borderX link border width 
class  space-separated list of classes 
dir  direction for weak/neutral text 
height  override height 
hspaceX horizontal gutter 
id  document-wide unique id 
ismap  use server-side image map 
lang  language code 
longdesc  link to long description (complements alt) 
name  name of image for scripting 
src XURI of image to embed 
style  associated style info 
title  advisory title 
usemap  use client-side image map 
vspaceX vertical gutter 
width  override width 

Events

Event Description
onclicka pointer button was clicked 
ondblclicka pointer button was double clicked 
onkeydowna key was pressed down 
onkeypressa key was pressed and released 
onkeyupa key was released 
onmousedowna pointer button was pressed down 
onmousemovea pointer was moved within 
onmouseouta pointer was moved away 
onmouseovera pointer was moved onto 
onmouseupa pointer button was released 



© htmlpedia.net 2008 - 2012