On Sunday 17 June 2001 18:50, Martin Duerst wrote: > For HTML, there are more ways to start a file, but not > that many more. I know about > > <HTML> (in various case variants, that is) > <!DOCTYPE ... > > Anything else (except of course for <?xml for XHTML )? RE HTML: If you don't require the file to start with the DOCTYPE declaration, then it could start with <head>, <title>, or any of the HEAD elements, as the <html> and <head> start and end tags are optional. It could also start with a comment declaration (<!-- ... -->). For legacy HTML probably the only safe statement is that the first non-whitespace character ought to be a '<'. OTOH the DOCTYPE isn't really optional. For XHTML things are simpler -- there are no optional start tags, and you can only start with the (optional) <?xml or the (mandatory) DOCTYPE declaration. -- Thanasis Kinias Vice President & Manager of Information Systems Optimal LLC Scottsdale, Arizona, USAReceived on Wednesday, 20 June 2001 01:24:09 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:57:02 GMT