as more compliant user agents have been developed.
One significant advantage of XHTML Basic over WML and C-HTML is that XHTML Basic pages can be rendered differently in web browsers and on handheld devices, eliminating the need for creating two different versions of the same page.
The initial specification for XHTML Basic was released in 2000. In 2006, the specification was revised to version 1.1, incorporating six new features to better serve the small-device community. The latest update of the specification by the
To validate as XHTML Basic, a document must contain the following
Document Type Declaration
, or DOCTYPE:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">
A complete
well-formed
example is:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"xml:lang="en"><head><title>Hello</title></head><body><p>Hello <ahref="http://example.org/">world</a>.</p></body></html>
Served with a MIME type of "application/xhtml+xml".
XHTML-Print
XHTML-Print, which became a W3C Recommendation in September 2006, is a specialized version of XHTML Basic designed for documents printed from information appliances to low-end printers.[2]