Why are HTML5 and XHTML 2 separate standards?

前端 未结 5 1795
小鲜肉
小鲜肉 2020-12-06 05:16

Is there a reason why these two standards are being developed separately? They seem to be solving the same problem but what are the differences and, if they are to remain se

5条回答
  •  孤街浪徒
    2020-12-06 05:43

    This is largely an accurate explanation, IMO, but it should be noted that HTML5 isn't backwards compatible - new elements like section cannot be styled with CSS in even IE7. Yes, there are JavaScript work-arounds but these aren't sufficient, both because not everyone has JavaScript enabled, far from every developer will become aware of these, and similarly not every developer has the ability to use JavaScript in this way.

提交回复
热议问题