为什么谷歌要使用字体标签?

发布于 2024-08-16 16:41:21 字数 338 浏览 5 评论 0原文

因此,在向我兄弟演示 Chrome 的 DOM 浏览器时,我不禁注意到 Google 使用 标记。

我知道这是一个愚蠢的问题,但从编程的角度来看——为什么他们会在 Google 上使用已弃用的标签? 是因为它比使用

然后为其创建样式,还是直接

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 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">?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

心的憧憬 2024-08-23 16:41:21

2005 年 11 月,Google 软件工程师 Matt Cutts 说道:

Google 的主页无法验证
这主要是为了节省而设计的
宝贵的字节。世界会终结吗
因为 Google 不加引号
围绕颜色属性?不,还有它
使页面加载速度更快。

资料来源:Google Blogscoped - Matt Cutts,Google 的小工具专家(采访)

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)

小嗷兮 2024-08-23 16:41:21

在 Google 主页上节省几个字节可能会节省数 TB 的传输带宽。

Saving a few bytes on the Google homepage likely saves them terabytes of transfer bandwidth.

枫林﹌晚霞¤ 2024-08-23 16:41:21

节省空间问题无疑是谷歌可能使用 fontcenter 标签的原因之一。另一个原因可能是兼容性。

让其主页在所有浏览器(包括 IE6 之前的浏览器和移动浏览器)上运行符合 Google 的最佳利益。由于 fontcenter 标记非常古老,因此它们几乎得到普遍支持。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文