ByteNoise

XHTML Basic

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away."

XHTML Basic is a simple implementation of XML-compliant HTML designed to work on consumer electronics, such as mobile phones and televisions. Because it is streamlined, you can create a site with a simple interface that is guaranteed to work on pretty much any web compatible device, even if you are generating the pages in a complicated manner behind the scenes. This makes it a pretty good choice of markup language if you only need to use what it supports.

What it supports

The following are supported:

The following are not supported:

Example template

The following template may prove useful as either a rough guide or something to copy and paste directly into a new file. With appropriate styling, it can be quite versatile due to the div and span elements.

<?xml version="1.0" encoding="us-ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
    <link rel="stylesheet" type="text/css" media="screen" href="screen.css" />
  </head>
  <body>
    <div id="wrap">
      <div id="head">
        <h1><span></span></h1>
      </div>
      <div id="menu">
        <ul>
          <li><a href="#"><span></span></a></li>
          <li><a href="#"><span></span></a></li>
          <li><a href="#"><span></span></a></li>
        </ul>
      </div>
      <div id="main">
      </div>
      <div id="foot">
        <p></p>
      </div>
    </div>
  </body>
</html>

Supported elements and their attributes

General attributes

Note that in addition to the specific attributes, all elements can have class, id, lang and title attributes, with the following exceptions:

Specific attributes

(Please e-mail me with any corrections. Thank you.)