HTML and CSS Reference
In-Depth Information
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 [27], while code reuse is easy.
To use HTML5 in its full glory, it is usually used together with other technologies such as CSS3, XML, and JavaScript
libraries.
Listing 3-7 shows an HTML5 skeleton document.
Listing 3-7. An HTML5 Skeleton Document
<!DOCTYPE html>
<html>
<head>
<title>Sample HTML5 document</title>
<meta charset="UTF-8" />
</head>
<body>
<header>
<h1>Document sample</h1>
</header>
<section>
<article>
<h2>Article1</h2>
The first article of the document.
</article>
<article>
<h2>Article2</h2>
The second article of the document.
</article>
</section>
<footer>
Copyright © 2015 John Smith. All rights reserved.
</footer>
</body>
</html>
HTML5 Modules
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:
1.
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
2.
Specifications developed as HTML5 extensions: HTML+RDFa, Polyglot Markup, HTML
Editing APIs, Media Capture and Streams, Media Source Extensions
3.
Initially standalone specifications that have been adopted by the HTML5 specification:
SVG, MathML, WAI-ARIA
 
Search WWH ::




Custom Search