1. Home
  2. Computing & Technology
  3. Web Design / HTML

<img />

By Jennifer Kyrnin, About.com

<img /> Description:

The <img /> element adds images and graphics to Web pages.

<img /> Web Browser Support:
<img /> Attributes:

None. <img /> is a singleton tag.

<img /> End Tag:

None.

<img /> Contents:

The <img /> tag is valid within the following tags:
a, abbr, acronym, address, applet, b, bdo, big, blockquote, body, button, caption, center, cite, code, dd, del, dfn, div, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, i, iframe, ins, kbd, label, legend, li, noframes, noscript, object, p, q, s, samp, small, span, strike, strong, sub, sup, td, th, tt, u, var

<img /> Valid Context:
  • standard image
    <img src="/library/graphics/html.gif" width=50 height=50 alt="Your HTML Guide" border="0" />
  • an image aligned to the left, with following text
    <img src="/library/graphics/html.gif" width="50" height="50" alt="Your HTML Guide" border="0" align="left" /> And this text is to the right of the image
<img /> Usage:
<img /> Special Notes:
More <img /> Information:

Return to XHTML Element (HTML Tags) Lihrary

Explore Web Design / HTML
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

©2009 About.com, a part of The New York Times Company.

All rights reserved.