Introduction 1
About this Book 2
Foolish Assumptions 3
Icons Used in This Book 4
Beyond the Book 4
Where to Go from Here 5
Part I: Getting Started with HTML and CSS on the Web 7
Chapter 1: An Overview of HTML and CSS on the Web 9
How and Where Web Pages Come to Life Online 10
HyperText 10
Content versus presentation 14
Web browsers 14
Getting to know Internet protocols 16
Understanding HTML and Its Versions 17
Different versions of HTML 17
Creating HTML markup 18
Building HTML documents 19
Understanding the Role of CSS 20
Different versions here, too 20
Creating CSS markup 21
Dissecting a Simple Markup Example 22
Wheres the HTML? 22
Wheres the CSS? 23
A partnership of equals 23
Chapter 2: Meeting the Structure and Components of HTML 25
Like Any Language: Syntax and Rules 25
Color-coding the markup 26
Breaking down the elements 27
Adding Attributes to Your HTML 29
Examining Entities in Markup 30
Non-ASCII characters 30
Character codes 31
(Special) tag characters 32
Organizing Web Pages 32
Organizing HTML text 34
Complementing and enhancing text 36
Chapter 3: Creating and Viewing a Web Page 37
Before You Get Started 37
Creating a Page from Scratch 39
Step 0: Gather your tools 39
Step 1: Planning a simple design 40
Step 2: Writing some HTML 41
Step 3: Saving your page 44
Step 4: Viewing your page 46
Editing an Existing Web Page 47
Posting Your Page Online 49
Part II: Getting the Structure and Text Right 51
Chapter 4: HTML Documents Need Good Structure 53
Establishing a Document Structure 53
HTML Document Organization Revisited 54
HTML DOCTYPE Starts Things Off 55
The Element 56
Anatomy of the
56Meeting the
himself 57Handling metadata with 57
Redirecting users to another page 58
Naming your page with a
The
Chapter 5: Text and Lists 63
Formatting Text 63
Paragraphs 65
Headings 66
Controlling Text Blocks 68
Block quotes 68
Preformatted text 69
Horizontal rules 71
Organizing Information 73
Numbered lists 73
Bulleted lists 75
Definition lists 77
Nesting lists 79
Chapter 6: Tip-Top Tables in HTML 81
How