Posted by Stewart Gordon on 05/30/06 16:26
I've just been experimenting with creating the shortest possible HTML
document that passes validation. Here's what I've come up with:
----------
<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN"><title//s
----------
Of course, it's only valid given a character encoding in the HTTP
headers. And the W3C validator's direct input interface happens to
treat there as being one....
Further challenges:
1. Find a browser that renders this correctly!
2. Find the shortest valid code in each version of (X)HTML.
Stewart.
Navigation:
[Reply to this message]
|