- 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.
推薦閱讀
- Beginning C++ Game Programming
- Learning Docker
- Vue.js 2 and Bootstrap 4 Web Development
- Scala Design Patterns
- Java從入門到精通(第5版)
- 基于Java技術(shù)的Web應用開發(fā)
- Blockly創(chuàng)意趣味編程
- YARN Essentials
- Raspberry Pi 2 Server Essentials
- HTML5+CSS3+JavaScript Web開發(fā)案例教程(在線實訓版)
- Java系統(tǒng)化項目開發(fā)教程
- Programming with CodeIgniterMVC
- 平面設(shè)計經(jīng)典案例教程:CorelDRAW X6
- PHP項目開發(fā)全程實錄(第4版)
- C++服務器開發(fā)精髓