TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Google's 404 Page

15 点作者 exupero超过 13 年前

3 条评论

mmahemoff超过 13 年前
Paul Irish recently shined a light on the Google 404 page in his talk on the primitives of HTML5: <a href="https://www.youtube.com/watch?v=WxmcDoAxdoY" rel="nofollow">https://www.youtube.com/watch?v=WxmcDoAxdoY</a> (around 19:20).<p>In the talk, he explains that all this is valid HTML5. You don't need quotes, you don't generally need closing tags. Whether you choose to them depends on how dirty it makes you feel, but few browsers will actually care.<p>A separate but related lesson is that Google cares a ton about performance, so you'll often find these byte-saving tricks in high-traffic Google pages. e.g. the use of "//foo.com" instead of "<a href="http://foo.com" rel="nofollow">http://foo.com</a>.
评论 #3282779 未加载
AndrewDucker超过 13 年前
If you look at <a href="http://code.google.com/speed/articles/optimizing-html.html" rel="nofollow">http://code.google.com/speed/articles/optimizing-html.html</a> you'll see what HTML allows you to get away with...
gghootch超过 13 年前
Google uses some clever trick to hide the closing tags in your browser. Download the file and open it in your editor of choice, the closing tags are there.<p><a href="http://i.imgur.com/vCyrY.png" rel="nofollow">http://i.imgur.com/vCyrY.png</a><p>EDIT: Or chrome is auto-adding the tags? As mentioned below curl doesn't replicate the same results, nor does Firefox.
评论 #3282772 未加载
评论 #3282747 未加载
评论 #3282732 未加载