有效的CSS / HTML的要点是什么? [英] What's the point of valid CSS/HTML?

查看:121
本文介绍了有效的CSS / HTML的要点是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在大多数主要浏览器中测试了我的网页,为什么我需要维护验证的代码?我想使用box-shadows和角半径,如果它们在WebKit浏览器和Firefox支持。我不在乎他们不在Internet Explorer上显示。但是我通过不包括图像来保持我的HTTP请求。

If I've tested my pages in most major browsers, why would I need to maintain a validated code? I want to use box-shadows and corner radius if they're supported in WebKit browsers and Firefox. I don't care if they don't show up on Internet Explorer. But I keep my HTTP requests down by not including images instead.

有效的代码有优势吗?在SEO或其他方面?

Are there are advantages to valid code? In SEO or otherwise?

推荐答案


  • Google更喜欢它,因此它对SEO有好处

  • 这会使您的网页更有可能在未测试的浏览器中正常工作。

  • 它可以将网页生成或使用为XML文档

  • 它使你看起来更专业(至少对一些开发者)

  • 兼容的浏览器在怪异模式下可以比HTML更快地渲染XHTML。 li>
  • 它指出了你可能错过了一堆晦涩的错误,影响你可能没有测试的事情页面的代码页或语言集。

    • Google prefers it so it is good for SEO.
    • It makes your web page more likely to work in browsers you haven't tested.
    • It allows you to generate or use your page as an XML document.
    • It makes you look more professional (to some developers at least)
    • Compliant browsers can render XHTML faster than HTML in quirks mode.
    • It points out a bunch of obscure bugs you've probably missed that affect things you probably haven't tested e.g. the codepage or language set of the page.
    • 这篇关于有效的CSS / HTML的要点是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆