feather

Tables Using W3C's XHTML ™ Basic

XHTML Basic would seem to be a reasonable choice for displaying simple tables in a form that looks OK on a small device like a PDA. A table of Stock Data that is readable on a Handspring Visor as well as a desktop computer is shown here .

This is coded as XHTML, but it was saved in HTML form so it would not look like XML source when viewed on a PDA.

XMLSpy was used to edit Coffee1.xhtml and to check it for being Well Formed and Valid.

XHTML - some examples

Most discussions of XML leave me confused. HTML seems straightforward, and so XHTML may offer an entry point to the XML world. My motivation for trying XHTML is to have web pages that look the same on different browsers.

Being inherently lazy, I copied Alan Richmond's quick example and sent it away for validation. It came back with a warning: no character encoding detected. Getting rid of that "mistake" on my part, an improved quick example took care of that detail .

In the interests of getting into more of the picky details in XHTML, I took some of the source from the beginning of www.cambull.com and converted it to XHTML. The result is here. Carrying out this exercise on your own pages can be a good way of learning by doing. Uploading files to the W3C validator produces error messages that can be eliminated without too much difficulty.

W3Schools has an XHTML tutorial that discusses, among other things, the need for XHTML and the differences in syntax between XHTML and HTML.