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

标签 html css web-standards minify

因此,在向我兄弟演示 Chrome 的 DOM 浏览器时,我不禁注意到 Google 使用了 <font size=-2>标签。

我知道这是一个愚蠢的问题,但从编程的 Angular 来看——他们为什么要在 Google 上使用已弃用的标签? 是因为它小于使用 <p class="whatever">然后为它创建一个样式,或者只是去 <p style="font-size: x-small">

最佳答案

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

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.

来源:Google Blogoscoped - Matt Cutts, Google’s Gadgets Guy (Interview)

关于html - 为什么谷歌要使用字体标签?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1967191/

相关文章:

javascript - 将 localStorage 数据更改为 jQuery 中的 html 列表标记

jquery - 需要自定义jquery tabs css

xml - EXI(高效 XML 交换)即将到来……XML API 准备好了吗?

html - 混合 HTML 4 和 HTML 5 是否被认为可以(就标准而言)?

javascript - 使用 php 将视频转换为 MP4

html - CSS: "text-transform: capitalize"和意大利语、西类牙语、葡萄牙语、法语等

jquery - 多元素选择的第一个类型

JQuery 添加类功能不起作用

html - 在另一个 html 表单中包含一个 html 表单是否有效?

javascript - 如何使用 jspdf 按每列设置单元格大小?