|  | Posted by Michael Winter on 05/30/06 20:00 
On 30/05/2006 17:26, Stewart Gordon wrote:
 > I've just been experimenting with creating the shortest possible HTML
 > document that passes validation.
 
 We've done that before. It was Toby's challenge, and I seem to remember
 'winning' (though Jukka picked a few holes). :-)
 
 > Here's what I've come up with:
 >
 > ----------
 > <!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN"><title//s
 
 It can be shorter. See
 
 Subject: Minimal HTML
 Author: Toby Inkster
 Date: 2004-11-24 21:56:10
 Message-ID: pan.2004.11.24.21.56.10.45795@tobyinkster.co.uk
 
 and the discussion that followed. Note that if you read it though Google
 Groups, the post order is slightly messed up.
 
 [snip]
 
 > 1. Find a browser that renders this correctly!
 
 None of the major ones do (I mention that in the thread). You'd have to
 find a one implementing a proper SGML parser.
 
 > 2. Find the shortest valid code in each version of (X)HTML.
 
 They'll all be variations on the same theme, just changing the FPI and
 coping with required content. For example, in Strict document types,
 your 's' (my '.') could be replaced with <p// (HTML) or <p/> (XHTML).
 
 Mike
 
 --
 Michael Winter
 Prefix subject with [News] before replying by e-mail.
 [Back to original message] |