Title Page
Copyright Page
Table of Contents
Introduction
About this Book
Foolish Assumptions
Icons Used in This Book
Beyond the Book
Where to Go from Here
Part I: Getting Started with HTML and CSS on the Web
Chapter 1: An Overview of HTML and CSS on the Web
How and Where Web Pages Come to Life Online
HyperText
Content versus presentation
Web browsers
Getting to know Internet protocols
Understanding HTML and Its Versions
Different versions of HTML
Creating HTML markup
Building HTML documents
Understanding the Role of CSS
Different versions here, too
Creating CSS markup
Dissecting a Simple Markup Example
Where’s the HTML?
Where’s the CSS?
A partnership of equals
Chapter 2: Meeting the Structure and Components of HTML
Like Any Language: Syntax and Rules
Color-coding the markup
Breaking down the elements
Adding Attributes to Your HTML
Examining Entities in Markup
Non-ASCII characters
Character codes
(Special) tag characters
Organizing Web Pages
Organizing HTML text
Complementing and enhancing text
Chapter 3: Creating and Viewing a Web Page
Before You Get Started
Creating a Page from Scratch
Step 0: Gather your tools
Step 1: Planning a simple design
Step 2: Writing some HTML
Step 3: Saving your page
Step 4: Viewing your page
Editing an Existing Web Page
Posting Your Page Online
Part II: Getting the Structure and Text Right
Chapter 4: HTML Documents Need Good Structure
Establishing a Document Structure
HTML Document Organization Revisited
HTML DOCTYPE Starts Things Off
The Element
Anatomy of the
Meeting the himself
Handling metadata with
Redirecting users to another page
Naming your page with a
The Is a BIG Container
Chapter 5: Text and Lists
Formatting Text
Paragraphs
Headings
Controlling Text Blocks
Block quotes
Preformatted text
Horizontal rules
Organizing Information
Numbered lists
Bulleted lists
Defi nition lists
Nesting lists
Chapter 6: Tip-Top Tables in HTML
How
Got a Bad Name in HTML
What’s in a Table? LOTS of Markup
Setting Up a Table Border
The Table Head () and Its Elements
Managing Table Layouts
Making Good Table Bodies
Shaping a solid table
Sitting at the Footer of the Table
Exploring and Explaining a Table
Oh caption, my caption
Is the header dead yet?
Marching through the table body
Finishing with the footer
Chapter 7: Working with Forms in HTML
Exploring Types of Web Forms
Search forms
Data collection forms
Creating Forms
Structure
Input tags
Input fi elds
Form validation
Processing Data
Processing forms on your pages
Designing User-Friendly Forms
Other Noteworthy Forms-Related Markup
Form Frameworks
Part III: Adding Links, Images, and Other Media
Chapter 8: Getting Hyper with Links in HTML
Basic Links 101
Exploring link options
Avoiding common mistakes
Customizing Links
Opening new windows
Specifying locations in web pages
Linking to non-HTML resources
Chapter 9: Working with Images in HTML
The Role of Images in a Web Page
Creating Web-Friendly Images
Adding an Image to a Web Page
Image location
Using the element
Adding alternative and title text
Specifying image size
Image borders and alignment
Images That Link
Triggering links
Building image maps
Chapter 10: Managing Media and More in HTML
The Battle of the Media Formats
Meet the major audio formats
Meet the major video formats
Comparing Traditional and HTML5 Media Handling
Mastering HTML5 Media Markup
Making beautiful music with audio
Moving media with video
Undergoing the conversion experience
Working with Web Page Controls
Displaying a meter bar
Tracking progress on activities
Tracking and reporting on time
Updating HTML5 controls
Part IV: Adopting CSS Style
Chapter 11: Advantages of Style Sheets
Advantages of Style Sheets
The four steps to style
Understanding the C in CSS
What CSS can do for a web page
Styling a Document with CSS
Using HTML5 Boilerplate
Normalize before you stylize
What you can do with CSS
Putting CSS in Its Place
Pixels, points, and dots — Oh my!
Understanding the viewport
Property measurement values
About the CSS3 Standard
Chapter 12: CSS Structure and Syntax
Exploring CSS Structure and Syntax
Selectors and declarations
The selectors
Inheriting styles
Understanding the Cascade
Chapter 13: Using Different Kinds of Style Sheets
Applying Inline Styles
Getting to Know Internal Style Sheets
Understanding the