WML » Tags » img

Syntax:
<img src=... />

The img tag is used to place an image in the text flow.

The monochrome .wbmp (wireless bitmap) format is used to code images for wireless display. There are programs that can convert .bmp, .gif, and .jpg files into .wbmp format. Many browsers impose an upper size limit on the image (for example, 44 pixels high by 96 pixels wide).

Images can be used as hyperlinks and appear in tables. The img element can be contained in the following elements: a, anchor, b, big, em, fieldset, i, p, small, strong, td, and u.
 
This is a self-closing tag.
 
Nested Tags:  None

Examples

Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.WAPforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Card 1">
<p>
DevGuru is great!<br />
<img id="image27" src="gurulogo.wbmp" alt="The Guru" hspace="5" vspace="5" />
</p>
</card>
</wml>
Explanation:

This code example uses the img tag to display an image.

Language(s): WML

See Also: