遵循Web标准有多重要? [英] How important is it to follow web standards?

查看:114
本文介绍了遵循Web标准有多重要?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近发现大多数主要网站无法通过W3C的标记和CSS验证测试

解决方案

STANDARDS!



历史的一点



在直接回答之前,我认为重要的是说明最新标准。



您知道 W3C 一直在尝试开发 XHTML 2 标准?如果它会出来,它将不会向后兼容以前的HTML版本。事实上,在 W3C 中形成了一场叛乱,并以一个组织结束,这只是部分方法来创建 WHATWG WHATWG 背后真正的主要思想HTML5



您是否曾经问过自己为什么需要这么多时间才能从 WC3 ? WC3的工作方式是非常民主的。他们讨论一切,直到大家都接受。 WHATWG 稍作改动:提出并讨论了问题,但最终的问题在于编辑。引用 Jeremy Keith :虽然HTML5在 WHATWG中开发,W3C继续在XHTML 2上工作。它说不准快,它是不准确的,它是无处可去,非常缓慢。



它最终与W3C 删除 XHTML 2,而不是从头开始他们决定使用 WHATWG






意味着不再有良好的编码实践。 HTML5不是machiavellian。与XHTML 2不同,它基于现有规范(支持现有内容)。



最重要的是,规范背后的仲裁者是不同的浏览器供应商。您是否曾使用 webkit (Safari,Chrome), moz (Firefox)或 o (Opera)?这实际上是正常的,因为这意味着供应商正在推进即将到来的规范,有时在超出规格的功能。有一段时间,微软有心理高于标准,因为他们垄断了浏览器份额,并创建了自己的CSS元素。 Microsoft创建了诸如 过滤器 等CSS元素,但我们发现了一些特殊的。对于规格有两个推荐,它们是在CSS中使用不透明度的两种不同方式:颜色元素中的RGBA和不透明度元素。






标准的重要性



为了完成,我要说的是,网页设计师/开发人员有很大的责任,日期与技术和标准(如HTML5)有关。这并不意味着读出每一个规格。我同意这将是漫长而无聊。实际上,阅读关于这个主题的书,按照浏览器供应商的开发博客,并通过尝试东西不时有乐趣。我不再同意遵守所有网络标准的100%,因为总会有例外。我喜欢使用良好的编码实践,这将帮助开发人员,但同时将是浏览器友好。重要的是要了解HTML5基于现有标准,并且支持现有内容。



最后一个意见: http://dowebsitesneedtobeexperiencedexactlythesameineverybrowser.com/


I recently found out that most of the major websites fail W3C's markup and CSS validation tests. Therefore, how important is it really to follow web standards?

解决方案

STANDARDS!

A Bit of History

Before going straight to the answer, I believe it is important to state the context of the latest standard.

Did you know that the W3C had been trying to develop a XHTML 2 standard? If it would have came out it wouldn't be backward compatible with previous versions of HTML. In fact, a rebellion formed within the W3C and ended with a group that simply part ways to create the WHATWG. The WHATWG are the real master minds behind HTML5.

Have you ever ask yourself why it takes so much time to get standards from the WC3? The way WC3 works is very democratic. They discuss everything until everyone accepts. The WHATWG does this with a little twist: issues are raised and discussed, but the final word rests with the editor. To quote Jeremy Keith: "While HTML5 was being developed at the WHATWG, the W3C continued working on XHTML 2. It would be inaccurate to say it was going nowhere fast. It was going nowhere very, very slowly."

It ended up with the W3C dropping XHTML 2 and instead of going from scratch they took the decision to work with the WHATWG, after all.


The Return of Spaghetti Markup?

While HTML5 is no longer strict like XHTML, it does not mean that there are no longer good coding practices. HTML5 is not machiavellian. Unlike XHTML 2, it builds upon existing specs (supports existing content).

Above all, the arbiters behind the specs are the different browser vendors. Have you ever seen proprietary CSS elements with webkit (Safari, Chrome), moz (Firefox) or o (Opera)? This is actually normal to have because that means the vendors are working forward on upcoming specs and sometimes on functionalities that are out of the specs. For a while, Microsoft had the mentality of being above standards because they had the monopoly on the browser shares and created their own CSS elements. Microsoft created CSS elements such as filter and yet we find something peculiar. There are two recommandations for the specs which are two different ways of playing with opacity in CSS: RGBA in the color element and the opacity element.


The Importance of Standards

To finish, I would say that web designers/developers have a big responsibility to stay up to date with what is going on in terms of technology and standards such as HTML5. That doesn't mean to read every single spec out there. I agree that this would be long and boring. Actually, read books on the subject, follow the browser vendor's dev blogs and have fun from time to time by trying stuff out. I no longer agree with following 100% of all the web standards because there will always be exceptions. I prefer using good coding practices that will help developers, but that will at the same time be browser friendly. It is important to understand that HTML5 builds upon existing standards and it is made to support existing content.

One last opinion: http://dowebsitesneedtobeexperiencedexactlythesameineverybrowser.com/

这篇关于遵循Web标准有多重要?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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