html5 xhtml_“我应该学习XHTML还是HTML5?”

html5 xhtml

Web development started with the earliest version of HTML, which rapidly evolved into XHTML, its first true specification. More recently, it has been replaced by HTML5, with which it shares a common ancestry while taking a quite different approach. As human beings tend to be in love with the new, a lot of people jump directly into HTML5.

Web开发始于最早HTML版本,该版本Swift演变为XHTML,它是第一个真正的规范。 最近,它已被HTML5取代,它与HTML5具有相同的血统,同时采用了完全不同的方法。 随着人们倾向于爱上新的,许多人直接跳入HTML5。

In my opinion if you have time you’re probably best served learning XHTML first, progressing into HTML5 later. My rationale rests on five principles:

我认为, 如果您有时间 ,最好先学习XHTML,然后再学习HTML5。 我的基本原理基于五个原则:

  • I find that people respond better to the relatively strict rules, structure and predictable nature of XHTML vs. the more forgiving, free-form, anything-goes syntax of HTML5.

    我发现人们对XHTML相对严格的规则,结构和可预测的特性的响应要好于 HTML5更为宽容,自由形式,一切可用的语法。

  • Learning XHTML first allows one to branch out and explore other strictly XML-based technologies such as and RSS, a task that will be made much more difficult if you only know the relative looseness of HTML5.

    首先学习XHTML可以使人们分支并探索其他严格的基于XML的技术,例如和RSS,如果您只知道HTML5的相对松散,这项任务将变得更加困难。

  • No browser currently supports the entire HTML5 spec. Learning something like the new HTML form elements carries the massive proviso of “no browser understands this stuff completely”, which can be difficult for novices to appreciate or understand.

    当前没有浏览器支持整个HTML5规范 。 学习类似新HTML 表单元素之类的内容时 ,会出现“没有浏览器可以完全理解这些内容”的大写条件,这对于新手来说很难理解或理解。

  • In my experience XHTML is also an easier context in which to learn the principles of ; ARIA roles offer a useful bridge between XHTML & HTML5.

    以我的经验, XHTML也是学习原理的较容易的背景 ; ARIA角色在XHTML和HTML5之间提供了有用的桥梁。

  • A good deal of work over the next few years will be translating XHTML pages from older sites into HTML5. To do so effectively, developers need to know both languages, and it is easier to progress from XHTML to HTML5 than the reverse.

    在接下来的几年中,大量工作将把旧站点的XHTML页面转换为HTML5。 为了有效地做到这一点,开发人员需要同时了解两种语言,并且从XHTML升级到HTML5比反向开发更容易。

It’s important to note that this course of action is only applicable to those who desire a career in web development: if you’re only interested in making a website for yourself, you should feel free to go straight to HTML5 or jump into a CMS such as SquareSpace or WordPress. That’s the difference between occupation, craft, and play. It’s also advice that is open to change: if you are in a rush, you should feel free to go directly to HTML5.

重要的是要注意,此操作过程仅适用于那些希望从事Web开发工作的人 :如果您只对自己创建网站感兴趣,则可以直接使用HTML5或使用此类CMS作为SquareSpaceWordPress 。 那就是职业 ,Craft.io和娱乐之间的区别。 这也是可以随时更改的建议:如果您急于匆忙,则可以随意直接使用HTML5。

If you have a differing point of view, feel free to share it in the comments section below!

如果您有不同的观点,请随时在下面的评论部分中分享!

翻译自: https://thenewcode.com/716/Should-I-Learn-XHTML-Or-HTML5

html5 xhtml

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值