我应该在2013年将我的网站编码为HTML5吗? [英] Should I code my website in HTML5 in 2013?

查看:91
本文介绍了我应该在2013年将我的网站编码为HTML5吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始学习和研究HTML5,我只是在6年前研究HTML经典,我从来没有相当远。
我想构建一个网站并发布到WWW。
我现在应该坚持使用HTML4吗?或者我应该直接跳进HTML5吗?



我已经阅读&我明白,很多新的元素不支持,但我觉得有点蠢,键入过期的标签。 2013年,HTML5元素是否获得更多支持?



现在是否更好,因为未来是HTML5?
我也开始做CSS3,我认为这将有利于我而不是CSS2。



谢谢大家。



Html5。如果你有时间,我建议你给关于html5的真相所以说提供了很多新的东西。但市场的现实是一堆东西,或者只是简单的工作与少数的浏览器,其他的东西已经存在多年,只是包括在所以说html5品牌。



还要记住,ie8仍然代表着一个巨大的一块地的景观,并将在未来的岁月。最终,这一切都取决于你的项目目标受众是你愿意牺牲或允许牺牲的用户的百分比。



Caniuse.com 应该对您有用,并了解何时以及如何使用polyfill。



我自己我管理一个大网站,使用一堆html5,css3和响应式设计,从手机,平板电脑扩展到桌面,并在ie7也很好。



但是这不足以说让我们在html5中编码,而是花了很多反思和妥协来达成目标。



所以实际上我的答案是:使用css3的部分,降级优雅,尽可能多的你喜欢。 html5的部分,你发现不可缺少的条件你有一个后备polyfill到位。



最后你甚至不必在html4 / 5或css2 / 3之间进行选择。你可以很容易地混合和匹配..因为后者只是建立在以前。只要你知道你在做什么,为什么。



但是有学会!


I've started learning and researching HTML5, I only ever studied HTML classic some 6 years ago and I never got quite far with it. I want to build a website and publish it to the WWW. Should I stick with HTML4 for now? Or should I just jump straight into HTML5?

I've read & I understand that a lot of the new elements are not supported, but I feel a bit stupid to type outdated tags. Are HTML5 elements more supported in 2013?

Is it better to just start with 5 now, as the future is HTML5? I've also started doing CSS3 and I think it would benefit me rather than CSS2.

Thank you everyone.

解决方案

I suggest you give "The truth about html5" a read if you have the time.

Html5 so to speak offers a lot of new stuff. But the reality of the market is a bunch of stuff either just plain works with a handful of browsers, and other stuff has been around for years and simply got included under the so to say html5 branding.

Also keep in mind that ie8 still represents a huge piece of the pie of the ie landscape and will do so for years to come. In the end it all comes down to what your project target audience is and how many percent of users you are willing to sacrifice or allowed to sacrifice.

Caniuse.com should be of good use to you, and understanding when and how too use polyfills too.

Myself I manage a big site which uses a bunch of html5, css3, and responsive design that scales from mobile phones to tablets to desktops, and works just fine in ie7 too.

But it didn't suffice to say hey let's code it in html5, but instead took a lot of reflection and compromises to get there.

So actually my answer would be: use the parts of css3 that degrade gracefully as much as you like. The parts of html5 that you find indispensable ..at the condition you have a fallback polyfill in place. And the rest ..think 20 times before jumping on the buzzword bandwagon.

In the end you don't even have to choose between html4/5 or css2/3. You can mix and match both easily .. as the latter simply build on the previous. As long as you know what you are doing, and why.

But yes learn it !

这篇关于我应该在2013年将我的网站编码为HTML5吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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