Chapter 2

Webpage Markup with HTML5

The Hypertext Markup Language (HTML) is a markup language used to organize the contents in a webpage.

HTML has evolved and HTML5 is the new standard. HTML5 not only supplies a language for webpage markup, but also defines a good number of APIs (application programming interfaces) for JavaScript programs to interact, control, and manipulate the webpage in the context provided by the user agent (UA), which is usually a browser. It also specifies how browsers must support HTML5 features. Unless otherwise indicated, HTML descriptions and codes in this text will follow HTML5.

HTML provides various elements such as <h2> (second-level header) and <p> (paragraph) with which to structure the page content. HTML enables ...

Get Dynamic Web Programming and HTML5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.