官术网_书友最值得收藏!

HTML versions

Since its creation, there have of course been several different versions and flavors of HTML. The most notable are HTML4, XHTML, and HTML5:

  • HTML4: This is the last of a series of versions of HTML and is what most people will implicitly refer to when they talk about HTML.
  • XHTML: This is a different definition of HTML and an attempt to make HTML a member of the XML family, giving it more strict rules. An advantage is that it would be easier to use tools and languages that are intended to manipulate and translate XML documents. However, interest in maintaining that standard seems to have faded.
  • HTML5: This is the newest kid on the proverbial HTML block. A lot of books have been published about it and, if you have read one of them, you will have discovered that HTML5 is more than just a new version of the markup language. Granted, it comes with quite a few new tags, such as the <nav> or <section> tags. HTML5 also features the use of custom data attributes such as data-whateveryouchoose that you can use in your document. Later on you can manipulate these using JavaScript. It is a way to pass data along inside an element; hence the name chosen: data-*.

Did I say JavaScript? All the other new features in HTML5 are actually JavaScript APIs like HTML5 Canvas. Canvas lets you draw things on your web page, pie charts for example. Exciting as these APIs may be, they are beyond the scope of this chapter.

主站蜘蛛池模板: 卓资县| 钦州市| 武宣县| 宾川县| 乌鲁木齐县| 青州市| 柘城县| 松江区| 苏尼特左旗| 福建省| 固阳县| 东乡| 新津县| 余干县| 孙吴县| 洪雅县| 鄄城县| 平凉市| 唐山市| 南京市| 资源县| 游戏| 青浦区| 宜宾市| 洛扎县| 调兵山市| 荆州市| 申扎县| 武汉市| 同仁县| 依兰县| 沁源县| 南康市| 双流县| 宁海县| 新巴尔虎左旗| 敦化市| 修武县| 诸暨市| 承德县| 桐梓县|