Chapter 2. Creating Your First HTML Page

Are you ready to begin creating a Web page? This chapter shows you how to get started with a basic HTML document.

Creating Your First HTML Page

Understanding HTML Document Structure 18

Start an HTML Document 20

Save an HTML Document 24

View an HTML Page 26

Add a Document Declaration 28

Add Metadata 30

Understanding HTML Document Structure

Although Web pages can differ widely in terms of content and layout, all pages have certain HTML tags that give them the same basic structure. Understanding this structure helps you begin to build your own HTML pages.

HTML Tags

Document Type Declaration

The <HTML> and </HTML> tags at the beginning and end of a ...

Get Teach Yourself VISUALLY™ HTML and CSS 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.