Glubase - share your knowledge


All / Computers / Programming / HTML / XHTML





  • View Command

HTML / XHTML Reference

HTML / XHTML img definition

Description

Inserts an image into the HTML document.

Syntax

HTML

<img>

XHTML

<img \>

Attributes

Attribute Description
src = uri URI poiting to the image to display.
alt = text Short alternative text for text-browsers.
longdesc = uri Link to long description.
width Overrides image width.
height Overrides image height.
usemap = uri Use client-side image map.
ismap Use server-side image map.
align

Values

  • bottom
  • middle
  • top
border = pixels border width
hspace = pixels  
vspace = pixels  

End tag is forbidden.

Example

[Try this example yourself]
<img src="http://www.glubase.com/images/glubase2.gif" \>

Output

  • Comments

No comments added.