Re: [dev] rebooting the web (it was: surf rewrite for WebKit2GTK)

From: Alexandre Niveau <>
Date: Fri, 31 Oct 2014 20:04:58 +0100

On 31/10/2014 16:48, FRIGN wrote:
> To put it simply, what has the W3C been doing all these past years?
> Right! Stacking more and more stuff on top of what was there. However,
> writing (X)HTML hasn't become simpler in any way!
> Or who can possibly remember this every time he writes a new page:
> <?xml version='1.0' encoding='utf-8'?>
> <?xml-stylesheet type='text/css' href='style.css' ?>
> <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' ''>
> <html xmlns='' xml:lang='en' lang='en'>

I'm probably missing something here, but specifically the HTML
boilerplate *did* become drastically simpler in the last few years.
Now [1] an HTML5 page is just supposed to be:

<!DOCTYPE html>
<html lang=en>
        <meta charset="UTF-8">
        <title>Page title</title>
        <p>Hello world</p>

And that's actually the full version; thanks to tag omission [2], the
following is equivalent and also completely valid:

<!DOCTYPE html>
<meta charset=UTF-8>
<title>Page title</title>
<p>Hello world</p>

I'd say it's hard to suck less than that as far as HTML goes…

Also it's worth noting that while it's still recommended to keep the
meta charset tag in there, using any encoding other than UTF-8 is
invalid HTML5 [3].

I believe that all these simplifications do not break backwards
compatibility too much (that's the whole point), but I'm not certain.
Maybe that's the reason why you still have to use XHTML?



Received on Fri Oct 31 2014 - 20:04:58 CET

This archive was generated by hypermail 2.3.0 : Fri Oct 31 2014 - 20:12:08 CET