Title Page....8
Copyright....9
Introduction....11
About This Book....12
Foolish Assumptions....12
Icons Used in This Book....13
Where to Go from Here....13
Chapter 1: Getting to Know HTML and CSS....14
Getting a Bird’s-Eye View of the Process....14
Getting to Know HTML....17
Getting Familiar with CSS....25
Chapter 2: Constructing Pages with Good Bones....32
Getting to Know HTML’s Basic Structure Tags....32
Structuring the Page....41
Chapter 3: Adding Links, Lists, and Images....49
Applying the Basic Text Tags....49
Creating Links....53
Building Bulleted and Numbered Lists....54
Inserting Special Characters....58
Inserting Images....60
Chapter 4: Building Web Forms....65
What the Heck Is a Web Form?....65
Getting Your Form off the Ground....66
Including a Button....66
Gathering Text....67
Including Checkboxes....71
Setting Up Radio Buttons....74
Making Selection Lists....76
Adding a Picker or Two....79
Chapter 5: Exploring the CSS Box Model....82
Getting to Know the Box Model....82
Putting on Some Padding....86
Building a Border....88
Messing with Margins....94
Styling Sizes....96
Chapter 6: Selecting Stuff with Selectors....102
Understanding Element Relationships....102
Getting to Know the Selector....105
Exploring the Standard Selectors....106
Selecting Descendants, Children, and Siblings....109
Working with Pseudo-Classes....111
Chapter 7: Taking the Measure of CSS....119
Getting to Know the CSS Measurement Units....119
Learning the Absolute Measurement Units....120
Learning the Relative Measurement Units....121
Chapter 8: Decorating Element Colors and Backgrounds....129
Picking Out Colors in CSS....129
Coloring Page Text....135
Styling Background Colors and Images....135
Chapter 9: Tweaking Text Typographically....142
Formatting with Fonts....142
Tweaking the Type Size....154
Styling Text with Bold and Italics....157
Aligning Text Just So....160
Chapter 10: Ten Must-Memorize CSS Selectors....164
The Class Selector....164
The Id Selector....164
The Type Selector....165
The Descendant Combinator....165
The Child Combinator....165
The Subsequent-Sibling Combinator....166
The Next-Sibling Combinator....166
The First-Child Pseudo-Class....166
The Last-Child Pseudo-Class....166
The Nth-Child Pseudo-Class....167
Index....168
About the Author....195
Connect with Dummies....199
End User License Agreement....201
HTML & CSS Essentials For Dummies is your quick and handy reference to all the core concepts of HTML & CSS―the must-know markup and style languages that make the internet go. This no-nonsense book gets right to the point, eliminating review material, wordy explanations, and fluff. Understand all the fundamentals of HTML and CSS, quickly. Perfect for a brush-up on the basics or as an everyday desk reference on the job, this is the reliable little book you can always turn to for answers.
This book is clear and direct, focusing on the key topics you need to know about defining a website's user interface. Great for supplementing classroom learning, reviewing for a certification, or staying knowledgeable on the job.