2. Introduction to HTML5: Part 1

He had a wonderful talent for packing thought close, and rendering it portable.

—Thomas Babington Macaulay

High thoughts must have high language.

—Aristophanes

Objectives

In this chapter you’ll:

• Understand important components of HTML5 documents.

• Use HTML5 to create web pages.

• Add images to web pages.

• Create and use hyperlinks to help users navigate web pages.

• Mark up lists of information.

• Create tables with rows and columns of data.

• Create and use forms to get user input.

Outline

2.1 Introduction

2.2 Editing HTML5

2.3 First HTML5 Example

2.4 W3C HTML5 Validation Service

2.5 Headings

2.6 Linking

2.7 Images

2.7.1 alt Attribute

2.7.2 Void Elements

2.7.3 Using Images as Hyperlinks

2.8 Special Characters ...

Get Internet & World Wide Web: How to Program, Fifth Edition 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.