- Practical Web Development
- Paul Wellens
- 255字
- 2021-07-16 13:14:06
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 asdata-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.
推薦閱讀
- 國際大學生程序設計競賽中山大學內部選拔真題解(二)
- Learning C# by Developing Games with Unity 2020
- ASP.NET Core 5.0開發入門與實戰
- 深入淺出WPF
- Mastering Articulate Storyline
- OpenStack Cloud Computing Cookbook(Fourth Edition)
- Python編程完全入門教程
- 假如C語言是我發明的:講給孩子聽的大師編程課
- 網店設計看這本就夠了
- Jupyter數據科學實戰
- C語言程序設計習題與實驗指導
- 創意UI Photoshop玩轉移動UI設計
- Clojure High Performance Programming(Second Edition)
- 交互設計師成長手冊:從零開始學交互
- Java從入門到精通(視頻實戰版)