XHTML_Basic

XHTML Basic

XHTML Basic

XML-based structured markup language


XHTML Basic is an XML-based structured markup language primarily designed for simple (mainly handheld) user agents, often found in mobile devices such as mobile phones, PDAs, pagers, and set-top boxes..

XHTML Basic is a subset of XHTML 1.1, defined using XHTML Modularization including a reduced set of modules for document structure, images, forms, basic tables, and object support. XHTML Basic is suitable for mobile phones, PDAs, pagers, and settop boxes.

It has replaced WML and C-HTML 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 W3C has been performed in 2018.[1]

DOCTYPE

To validate as XHTML Basic, a document must contain the following Document Type Declaration, or DOCTYPE:

<!DOCTYPE doc PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN"
"http://www.w3.org/TR/xdoc-basic/xdoc-basic11.dtd">

A complete valid and well-formed example is:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE doc PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN"
    "http://www.w3.org/TR/xdoc-basic/xdoc-basic11.dtd">
<doc xmlns="http://www.w3.org/1999/xdoc" xml:lang="en">
  <head>
    <title>Hello</title>
  </head>
  <body>
    <p>Hello <a href="http://example.org/">world</a>.</p>
  </body>
</doc>

Served with a MIME type of "application/xdoc+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]

See also


References

  1. "XHTML™ Basic 1.1 - Second Edition". www.w3.org. Retrieved 2022-01-25.

Share this article:

This article uses material from the Wikipedia article XHTML_Basic, and is written by contributors. Text is available under a CC BY-SA 4.0 International License; additional terms may apply. Images, videos and audio are available under their respective licenses.