XHTML Basic
Differences between XHTML and HTML
- XHTML is case sensitive
- All elements must be closed
- All tags must be properly nested
- Attibures must always be enclosed in quotes
- All empty tags must be "self-closing"
- Attribute pairs cannot be minimized
Omitted Elements & Attributes from HTML
- body tag does not support bgcolor, text, or link attributes
- link tag supports new attribute value: media="handheld"
- style element not in XHTML Basic, but included in WML 2.0 and some browsers
- frames not supported
- font related elements (center, font, s, tt, b, big, i, small, u) not included
- <hr /> not in XHTML Basic, but included in WML 2.0 and some browsers
- input element does not support type="image" or "button"
- a element doesn not support button and name
- ol, ul, and li tags do not support attributes
- nesting of tables not supported, align, cellpadding, cellspacing, and border not supported.
- img tag does not support align, border, usemap, hspace, and vspace
- script tag not supported
- object tag not supported
WML 2.0 Extensions to XHTML Basic
- style tag
- style attribute (inline styles)
- hr tag
- marquee tag
Differences between XHMTL Basic and WML 1.0
- use html root element instead of wml
- head tag is required
- template element removed
- card element removed (use body instead)
- WML events (do, go, prev, ...) not supported
- do element not used
Return to Programming the Wireless Web