Why did Google leave the html tag open?

On page 404 of Google, the html tag is used without a closing tag. You can see the code yourself by going to www.googleusercontent.com. This does not cause errors in the w3c validator. Why is this?

<!DOCTYPE html>
<html lang=en>
  <meta charset=utf-8>
  <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
  <title>Error 404 (Not Found)!!1</title>
  <style>
    *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}
  </style>
  <a href=//www.google.com/><img src=//www.google.com/images/errors/logo_sm.gif alt=Google></a>
  <p><b>404.</b> <ins>That’s an error.</ins>
  <p>The requested URL <code>/</code> was not found on this server.  <ins>That’s all we know.</ins>
+5
source share
3 answers

This should help explain:

According to Googles’s latest recommendations for speeding up the Internet, there are a few optional HTML4 tags that you can omit to save speed, even if it makes you feel a little nauseous as a developer. (Google is quick to point out these tricks for HTML, not XHTML.)

Google <body> <html>. - , , .

"" Googles . , , , .

http://blog.errorhelp.com/2009/06/27/the-highest-traffic-site-in-the-world-doesnt-close-its-html-tags/

+7

:

HTML , , , , .

+2

From the HTML5 specification :

A test tag for html elements can be omitted if the html element is not followed by a comment, and the element contains the body of an element that is not empty or whose start tag has not been omitted.

0
source

All Articles