Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project









WML TAG:  img

<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
 
Attributes
 
align
The optional align attribute sets the image alignment with regard to the baseline of the text. The only permitted values are bottom, middle, and top.
 
alt
The mandatory alt attribute is an alternative string or text to be displayed if the image cannot be displayed.
 
class
The optional class core attribute is used to assign one or more classes to the element. Multiple classes are separated by white space. The class name is case sensitive (i.e., Stocks and stocks are not the same).
 
height
The optional height attribute sets the display height of the image. It is expressed as an integer percentage of the available vertical display space.
 
hspace
The optional hspace attribute sets the amount of white space to be inserted on both the right and left side of the image. It is expressed as an integer percentage of the available horizontal display space.
 
id
The optional id core attribute is used to assign a unique name to a tag. The name must be unique to the entire deck and not just unique to a card. The first character of the name can be a letter or the underscore. The remaining characters can be any combination of letters, numbers, or underscores.
 
localsrc
The optional localsrc attribute is a string that specifies an alternative internal substitution for the image. If present, this attribute takes precedence over the src attribute.
 
src
The mandatory src attribute is the URL address of the image. It must be in a .wbmp image file format. The URL usually cannot exceed 255 characters in length.
 
vspace
The optional vspace attribute sets the amount of white space to be inserted both above and below the image. It is expressed as an integer percentage of the available vertical display space.
 
width
The optional width attribute sets the display width of the image. It is expressed as an integer percentage of the available horizontal display space.
 
xml:lang
The optional xml:lang attribute sets the language used in the element, such as English or Greek. For example, in the U.S. the default value is en-US.
 
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>


 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information