1. HTML Basics

This chapter provides foundational information for Parts 2 and 3 of the book. (If you’ve been around HTML for awhile, much of it will be old hat.)

I cover a few standards-based best practices, basic HTML document structure for all flavors of the language (including HTML5), differences among the versions, DOCTYPEs, basic data types, common attributes, a note about obsolete and deprecated items, and more.


I encourage all readers to review the “How Attributes Are Noted in This Book” box.

Let’s begin with an overview of HTML5 in case this version of HTML is new to you.

An HTML5 Overview

HTML5 is a natural evolution of HTML 4 that accounts for the rapid growth of media, rich online experiences, and sophisticated Web application ...

Get The HTML Pocket Guide now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.