Google finally has a 404 page that isn't ugly
google.com
google.com
You might have typed the URL incorrectly, for instance. Or (less likely but certainly plausible) we might have coded the URL incorrectly. Or (far less plausible, but theoretically possible, depending on which ill-defined Grand Unifying Theory of physics one subscribes to), some random fluctuation in the space-time continuum might have produced a shatteringly brief but nonetheless real electromagnetic discombobulation which caused this error page to appear.
http://allthatsnew.files.wordpress.com/2009/04/reddit.png?w=...
for a 404 they swap out several images. see http://www.reddit.com/thisisa404
https://img.skitch.com/20110302-kdhkc99usamdhb6yaptrw2y81d.j...
http://i52.tinypic.com/2cf8kdh.jpg
I only noticed a friend with it on his account last week. The next time I singed into my account it came up, and it's been there ever since.
<title>Error 404 (Not Found)!!1</title>To be honest, I prefer the idea of a more intelligent 404 page. You'd think Google would have sufficient horsepower to make a good guess at what you might have been trying to find.
If you view source, for example, the image is base64 encoded, and they don't even bother closing their tags on the page, because that's more bytes and the browsers don't notice. This was very carefully engineered.
In case a computer doesn't have that as the default for some reason, they don't want their page to look any different, if it is possible for the computer to display it correctly, because if it doesn't, it affects their brand image.
Imagine if you did a google search and everything looked just a little bit off (and you weren't a developer so you didn't know why): you might think someone was hacking google and stealing your information or changing your results. Consistency builds trust, and this is important to them.
There's a script for that: http://googlewebmastercentral.blogspot.com/2008/08/make-your...
Example:
<script type="text/javascript">
var GOOG_FIXURL_LANG = 'en';
var GOOG_FIXURL_SITE = 'http://www.example.com
</script>
<script type="text/javascript"
src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js>
</script> href=//www.google.com/
Title is funny :)
I think they could drop margin:0; padding:0 from css, default values in browsers won't change much for this type of page anyway.More specifically: http://www.ietf.org/rfc/rfc3986.txt
Via: http://stackoverflow.com/questions/3583103/scheme-relative-u...
Oh, and it validates indeed: http://validator.w3.org/check?uri=http://www.google.com/nota...
Fairplay to them though, they got a semantically and structurally deficient document to validate - it's like the IE6 of webpages ;0)
http://www.w3.org/TR/html5/tokenization.html#the-before-html...
It seems bizarre to me that you wouldn't simply define the location of meta elements strictly as being in the head but instead define that should the parser find them they should be wrapped in to a head element.
On a brief view it looks like one can just drop a meta tag, say, in anywhere in the document and the parser has to move this to the head element?
I didn't realise that they were encouraging tag soup; this isn't part of the spec I've seen before. This sort of complex parsing algo wasn't in XHTML1.X or HTML4.X was it?
The complex parsing algorithm wasn't spelled out in excruciating detail, as it is in HTML5; much of it was implied, and left for the parser developers to figure out.
Strictly, the HTML, HEAD, and (BODY|FRAMESET) elements are required, in a valid document, but the tags delimiting them are optional. That way, code which manipulates the DOM can always count on a HEAD element being present, and CSS specifiers can use 'body' as a root, even if the tags themselves are missing from the source HTML file.
The first actual required tag in an HTML 4 document is <title>, as far as I know. Every HTML document has to have one, and it needs to be opened and closed explicitly. If it's the first thing in the document, it implies an <html><head> before it, and if body content comes after it, that will imply </head><body> as well.
You could put a <meta> tag anywhere before the first body content, and it would still be part of the implied HEAD element. As long as it doesn't come after the (explicit or implicit) </head> tag, it shouldn't cause the document to fail validation.
And no, none of this is valid XHTML. XHTML is always strict, and all opening and closing (or self-closing) tags must be present in the source file.
(I'll give you a hint: It's MSIE 6 and 7.)
Source: http://en.wikipedia.org/wiki/Data_URI_scheme#Web_browser_sup...
Maybe someone at Google should take a look at these very helpful tips on what to include on a 404 page:
Like, a lot.
Not true. They know the sub-domain and the path. Either or both could be used to do something more intelligent.
<script type="text/javascript">
var GOOG_FIXURL_LANG = 'en';
var GOOG_FIXURL_SITE = 'http://www.google.com'
</script>
<script type="text/javascript"
src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js>
</script>...abandoned in the desert...
When you launch, as a matter of fact for the first 10 years, having a clever error page is not a "MUST-have".
Prioritize!
Btw, this comment is just as much for me as for the next guy.
Kudos to Goog.