Why would Google use a font tag?
So, I couldn't help noticing while demonstrating Chrome's DOM browser thing to my brother, that Google uses a <font size=-2>
tag.
I know this is a stupid question, but from a programming point of view--why would开发者_如何学JAVA they use a deprecated tag on Google? Is it because it's smaller than using <p class="whatever">
and then creating a style for it, or just going <p style="font-size: x-small">
?
In November 2005, Matt Cutts, a Google software engineer, said:
Google’s home page doesn’t validate and that’s mostly by design to save precious bytes. Will the world end because Google doesn’t put quotes around color attributes? No, and it makes the page load faster.
Source: Google Blogoscoped - Matt Cutts, Google’s Gadgets Guy (Interview)
Saving a few bytes on the Google homepage likely saves them terabytes of transfer bandwidth.
Space saving issues is certainly one reason google might use the font
and center
tags. Another reason could be for compatibility.
It's in google's best interest to make their homepage to work in all browsers, including pre-IE6 and mobile browsers. Since the font
and center
tag are so ancient, they're almost universally supported.
精彩评论