HTML and CSS Reference
HTML5 introduced new structural and multimedia elements for the markup, and Application Programming
Interfaces (APIs) to extend the capabilities of the core specification, and provide the option to develop web
applications. The web applications written in HTML5 are accessible and device-independent, and need declarative
programming (much less coding) compared to traditional procedural programming , while code reuse is easy.
Listing 3-7 shows an HTML5 skeleton document.
Listing 3-7. An HTML5 Skeleton Document
<title>Sample HTML5 document</title>
<meta charset="UTF-8" />
The first article of the document.
The second article of the document.
Copyright © 2015 John Smith. All rights reserved.
HTML5 is modular, providing the option to use extension specifications that define new elements, new attributes, new
attribute values, and new APIs. There are three types of HTML5 modules:
Technologies that were originally parts of the HTML5 specification, but later moved
to separate specifications: HTML5 Microdata, HTML5 Canvas, Web Messaging, Web
Workers, Web Storage, WebSocket, Server-Sent Events, WebRTC, WebVTT
Specifications developed as HTML5 extensions: HTML+RDFa, Polyglot Markup, HTML
Editing APIs, Media Capture and Streams, Media Source Extensions
Initially standalone specifications that have been adopted by the HTML5 specification:
SVG, MathML, WAI-ARIA