liveBook · Manning

What you will learn in Web Design Playground

HTML & CSS The Interactive Way

by Paul McFedries

Chapter by chapter

Chapter 1: Getting to Know HTML and CSS

1.1 What Is HTML? · 1.2 What Can You Do with HTML? · 1.3 From Plain Text to HTML: An Example · 1.4 What Is CSS? · 1.5 A Note about the Separation of Structure and Presentation · 1.6 What Can You Do with CSS? · 1.7 From Structure to Presentation: A CSS Example · 1.8 What Can’t You Do with HTML and CSS? · 1.9 How HTML and CSS Create the Web · 1.10 Introducing the Web Design Playground · 1.11 Playing with HTML and CSS · 1.12 Loading the Lesson Files · 1.13 Preserving Your Work · 1.14 Lesson 1.1: Introducing HTML Tags · 1.15 HTML · 1.16 Adding HTML Tag Attributes · 1.17 Lesson 1.2: Introducing CSS Properties · 1.18 CSS · 1.19 HTML · 1.20 CSS · 1.21 HTML · 1.22 Some Helpful Features of the Playground · 1.23 Summary

What you learn in chapter 1 →

Chapter 2: Building Your First Web Page

2.1 Getting Your Web Page off the Ground · 2.2 Lesson 2.1: Laying Down the Basic Page Structure · 2.3 Lesson 2.2: Adding a Title · 2.4 HTML · 2.5 Lesson 2.3: Adding Some Text · 2.6 HTML · 2.7 Learning the Most Common Text Elements · 2.8 Lesson 2.4: Marking Important Text · 2.9 Example · 2.10 HTML · 2.11 Lesson 2.5: Formatting Keywords · 2.12 HTML · 2.13 Lesson 2.6: Emphasizing Text · 2.14 HTML · 2.15 Lesson 2.7: Formatting Alternative Text · 2.16 HTML · 2.17 Lesson 2.8: Quoting Text · 2.18 HTML · 2.19 Lesson 2.9: Working with Headings · 2.20 HTML · 2.21 HTML · 2.22 Lesson 2.10: Crafting Links · 2.23 HTML · 2.24 Summary

What you learn in chapter 2 →

Chapter 3: Adding Structure to Your Page

3.1 HTML Elements for Structuring Page Text · 3.2 Lesson 3.1: Working with Paragraphs · 3.3 HTML · 3.4 Lesson 3.2: Inserting Line Breaks · 3.5 HTML · 3.6 Lesson 3.3: Dividing Web Page Text · 3.7 HTML · 3.8 Lesson 3.4: Creating Inline Containers · 3.9 CSS · 3.10 HTML · 3.11 Lesson 3.5: Adding a Visual Break between Blocks · 3.12 HTML · 3.13 Organizing Text Into Lists · 3.14 Lesson 3.6: Adding a Numbered List · 3.15 HTML · 3.16 Lesson 3.7: Adding a Bulleted List · 3.17 HTML · 3.18 Summary

What you learn in chapter 3 →

Chapter 4: Formatting Your Web Page

4.1 Styling Text · 4.2 Styling the Typeface · 4.3 Lesson 4.1: Specifying a Generic Font · 4.4 CSS · 4.5 HTML · 4.6 Lesson 4.2: Specifying a System Font · 4.7 CSS · 4.9 Lesson 4.3: Setting the Type Size · 4.10 CSS · 4.12 Working with Text Styles · 4.13 Lesson 4.4: Making Text Bold · 4.15 HTML · 4.16 Lesson 4.5: Making Text Italic · 4.17 CSS · 4.18 HTML · 4.19 Styling Paragraphs · 4.20 Lesson 4.6: Aligning Paragraphs Horizontally · 4.21 CSS · 4.22 HTML · 4.23 Lesson 4.7: Indenting Paragraph Text · 4.24 HTML · 4.25 Working with Colors · 4.26 Lesson 4.8: Applying Color to Text · 4.27 CSS · 4.28 HTML · 4.29 Lesson 4.9: Applying Color to a Background · 4.30 CSS · 4.31 HTML · 4.32 Summary

What you learn in chapter 4 →

Chapter 5: Project: Creating a Personal Home Page

5.1 What You’ll Be Building · 5.2 Sketching the Layout · 5.3 Choosing Typefaces · 5.4 Choosing a Color Scheme · 5.5 Building the Page · 5.6 The Initial Structure · 5.7 Try This · 5.9 CSS · 5.10 HTML · 5.11 The Page Title · 5.12 Try This · 5.14 CSS · 5.15 HTML · 5.16 The Page Introduction · 5.17 Try This · 5.19 CSS · 5.20 HTML · 5.21 The Social Media Links · 5.22 Try This · 5.24 CSS · 5.25 HTML · 5.26 The Body Text · 5.27 Try This · 5.29 CSS · 5.30 HTML · 5.31 The Page Footer · 5.32 Try This · 5.34 CSS · 5.35 HTML · 5.36 From Here · 5.37 Summary

What you learn in chapter 5 →

Chapter 6: Adding Images and Other Media

6.1 Lesson 6.1: Adding an Image to the Page · 6.3 HTML · 6.4 Understanding Image File Formats · 6.5 Getting Graphics · 6.6 Inserting an HTML5 Figure · 6.7 HTML · 6.8 Setting Up an Image as a Link · 6.9 HTML · 6.10 Using an Image as a Custom Bullet · 6.11 CSS · 6.13 Aligning Images and Text · 6.14 HTML · 6.15 Lesson 6.2: Working with Background Images · 6.16 CSS · 6.17 HTML · 6.18 Controlling the Background Repeat · 6.19 Setting the Background Position · 6.20 Adding a Hero Image · 6.21 CSS · 6.22 HTML · 6.23 The Background Shorthand Property · 6.24 Optimizing Images · 6.25 Adding Video and Audio to the Page · 6.26 Web Video Formats · 6.27 Web Audio Formats · 6.28 Lesson 6.3: Embedding Video in a Web Page · 6.29 HTML · 6.31 Lesson 6.4: Embedding Audio in a Web Page · 6.32 HTML · 6.34 Summary

What you learn in chapter 6 →

Chapter 7: Learning More About Styles

7.1 Adding Styles to a Page · 7.2 Lesson 7.1: Inserting Inline Styles · 7.3 HTML · 7.4 Lesson 7.2: Adding an Internal Style Sheet · 7.5 CSS · 7.6 HTML · 7.7 Lesson 7.3: Referencing an External Style Sheet · 7.8 Lesson 7.4: Using Class Selectors · 7.9 CSS · 7.10 HTML · 7.11 Units of Measurement in CSS · 7.12 Summary

What you learn in chapter 7 →

Chapter 8: Floating and Positioning Elements

8.1 Understanding the Default Page Flow · 8.2 Lesson 8.1: Floating Elements · 8.3 CSS · 8.4 HTML · 8.5 Clearing Floated Elements · 8.6 Preventing Container Collapse · 8.7 CSS · 8.9 Floating a Drop Cap · 8.10 CSS · 8.11 HTML · 8.12 Floating a Pull Quote · 8.13 CSS · 8.14 HTML · 8.15 Lesson 8.2: Positioning Elements · 8.16 Relative Positioning · 8.17 CSS · 8.18 HTML · 8.19 Absolute Positioning · 8.20 CSS · 8.21 HTML · 8.22 Fixed Positioning · 8.23 Summary

What you learn in chapter 8 →

Chapter 9: Styling Sizes, Borders, and Margins

9.1 The Anatomy of an Element Box · 9.2 Lesson 9.1: Setting the Width and Height · 9.3 CSS · 9.4 HTML · 9.5 Lesson 9.2: Adding Padding · 9.6 CSS · 9.7 HTML · 9.8 Lesson 9.3: Applying a Border · 9.9 CSS · 9.10 HTML · 9.11 Lesson 9.4: Controlling the Margins · 9.12 CSS · 9.13 HTML · 9.14 Watch Out for Collapsing Margins! · 9.15 Summary

What you learn in chapter 9 →

Chapter 10: Project: Creating a Landing Page

10.1 What You’ll Be Building · 10.2 Sketching the Layout · 10.3 Choosing Typefaces · 10.4 Choosing a Color Scheme · 10.5 Building the Page · 10.6 The Initial Structure · 10.7 Try This · 10.9 HTML · 10.10 The Header · 10.11 The Hero Background Image · 10.12 Try This · 10.14 CSS · 10.15 HTML · 10.16 The Product Image · 10.17 Try This · 10.19 CSS · 10.20 HTML · 10.21 The Product Info · 10.22 Try This · 10.24 CSS · 10.25 HTML · 10.26 The Call-to-Action Button · 10.27 Try This · 10.29 CSS · 10.30 HTML · 10.31 The Product Description · 10.32 Try This · 10.34 CSS · 10.36 Setting Up the Content Bands · 10.37 Try This · 10.39 CSS · 10.40 HTML · 10.41 The Product Testimonials · 10.42 Try This · 10.44 CSS · 10.45 HTML · 10.46 The Pricing Table · 10.47 Try This · 10.49 CSS · 10.50 HTML · 10.51 Try This · 10.54 HTML · 10.55 Try This · 10.57 CSS · 10.58 HTML · 10.59 The Social Media Links · 10.60 Try This · 10.62 CSS · 10.63 HTML · 10.64 The Page Footer · 10.65 Try This · 10.67 CSS · 10.68 HTML · 10.69 From Here · 10.70 Summary

What you learn in chapter 10 →

Chapter 11: Learning Page Layout Basics

11.1 The Holy-Grail Layout · 11.2 Understanding Web Page Layout Methods · 11.3 Learning the HTML5 Semantic Page Elements · 11.4 <header> · 11.5 <nav> · 11.6 <main> · 11.7 <article> · 11.8 <section> · 11.9 <aside> · 11.10 <footer> · 11.11 The Holy-Grail Layout, Revisited · 11.12 Creating Page Layouts with Floats · 11.13 Lesson 11.1: Creating the Holy Grail Layout with Floats · 11.14 CSS · 11.15 HTML · 11.16 CSS · 11.17 HTML · 11.18 CSS · 11.19 HTML · 11.21 HTML · 11.22 Creating Page Layouts with Inline Blocks · 11.23 Lesson 11.2: Creating the Holy-Grail Layout with Inline Blocks · 11.24 CSS · 11.25 HTML · 11.26 CSS · 11.27 HTML · 11.28 CSS · 11.29 HTML · 11.30 CSS · 11.31 HTML · 11.32 Summary

What you learn in chapter 11 →

Chapter 12: Creating Page Layouts with Flexbox

12.1 Understanding Flexbox · 12.2 Working with Flexbox Containers · 12.3 Lesson 12.1: Dead-Centering an Element with Flexbox · 12.4 CSS · 12.5 HTML · 12.6 Working with Flexbox Items · 12.7 Flexbox Browser Support · 12.8 Lesson 12.2: Creating a Thumbnail List · 12.9 CSS · 12.11 Lesson 12.3: Creating the Holy-Grail Layout with Flexbox · 12.12 CSS · 12.13 HTML · 12.14 CSS · 12.15 HTML · 12.16 CSS · 12.17 HTML · 12.18 Summary

What you learn in chapter 12 →

Chapter 13: Designing Responsive Web Pages

13.1 Lesson 13.1: Why Fixed-Width Layouts Are the Enemy · 13.2 CSS · 13.3 HTML · 13.4 Creating a Responsive Layout · 13.5 Lesson 13.2: Creating a Liquid Layout · 13.6 CSS · 13.7 HTML · 13.8 Liquid Layouts with Viewport Units · 13.9 Lesson 13.3: Creating a Flexible Layout · 13.10 CSS · 13.11 HTML · 13.12 Lesson 13.4: Creating an Adaptive Layout · 13.13 CSS · 13.14 A Note about Media Query Breakpoints · 13.15 Lesson 13.5: Creating a Mobile-First Layout · 13.16 CSS · 13.17 HTML · 13.18 Which Layout Is the Responsive One? · 13.19 Summary

What you learn in chapter 13 →

Chapter 14: Making Your Images and Typography Responsive

14.1 Making Images Responsive · 14.2 Lesson 14.1: Creating Fluid Images · 14.3 CSS · 14.4 HTML · 14.5 Lesson 14.2: Delivering Images Responsively · 14.6 HTML · 14.7 Making Typography Responsive · 14.8 Lesson 14.3: Using Responsive Font Sizes · 14.9 CSS · 14.10 Lesson 14.4: Using Responsive Measurements · 14.11 CSS · 14.12 Gallery of Responsive Sites · 14.13 Summary

What you learn in chapter 14 →

Chapter 15: Project: Creating a Photo Gallery

15.1 What You’ll Be Building · 15.2 Getting Your Photos Ready · 15.3 Sketching the Layout · 15.4 Choosing Typefaces · 15.5 Choosing the Colors · 15.6 Building the Page · 15.7 The Initial Structure · 15.8 Try This · 15.10 HTML · 15.11 The Overall Layout · 15.12 Try This · 15.13 CSS · 15.14 The Header Section · 15.15 Try This · 15.17 CSS · 15.19 The Navigation Section · 15.20 Try This · 15.22 CSS · 15.23 HTML · 15.24 Try This · 15.26 CSS · 15.28 The Main Section · 15.29 Try This · 15.31 CSS · 15.32 HTML · 15.33 The Footer Section · 15.34 Try This · 15.36 CSS · 15.37 HTML · 15.38 Adding a Few Tricks · 15.39 Making the Footer Fixed · 15.40 Try This · 15.42 CSS · 15.43 Making the Nav Bar Sticky · 15.44 Try This · 15.46 CSS · 15.47 Adding Dynamic Captions · 15.48 Try This · 15.50 CSS · 15.51 HTML · 15.52 From Here · 15.53 Summary

What you learn in chapter 15 →

Chapter 16: More HTML Elements for Web Designers

16.1 Lesson 16.1: Other Text-Level Elements You Should Know · 16.2 <abbr> · 16.4 <cite> · 16.6 <code> · 16.8 <dfn> · 16.10 <kbd> · 16.12 <mark> · 16.14 <pre> · 16.16 <s> · 16.18 <samp> · 16.20 <small> · 16.22 <sub> · 16.24 <sup> · 16.26 <time> · 16.28 <u> · 16.30 <var> · 16.32 More about Links · 16.33 Linking to Local Files · 16.34 Lesson 16.2: Linking to the Same Page · 16.35 HTML · 16.36 Inserting Special Characters · 16.37 Using the HTML5 Entity Browser · 16.38 Adding Comments · 16.39 Summary

What you learn in chapter 16 →

Chapter 17: Adding a Splash of Color to Your Web Designs

17.1 Understanding Colors · 17.2 Adding Colors with CSS · 17.3 Lesson 17.1: Specifying Red, Green, and Blue with the rgb() Function · 17.4 CSS · 17.5 HTML · 17.6 Lesson 17.2: Specifying Hue, Saturation, and Luminance with the hsl() Function · 17.7 CSS · 17.8 HTML · 17.9 A Quick Note about Transparency · 17.10 A Brief Detour into Hexadecimal Numbers · 17.11 Lesson 17.3: Using RGB Hex Codes · 17.12 CSS · 17.13 HTML · 17.14 Working with the Color Chooser · 17.15 Choosing Harmonious Colors · 17.16 Using the Color Scheme Calculator · 17.17 Color Scheme Gallery · 17.18 Applying a Color Gradient · 17.19 Lesson 17.4: Creating a Linear Gradient · 17.20 CSS · 17.21 HTML · 17.22 CSS · 17.23 HTML · 17.24 Lesson 17.5: Creating a Radial Gradient · 17.25 CSS · 17.26 HTML · 17.27 Lesson 17.6: Gradients and Older Browsers · 17.28 Using the Gradient Construction Kit · 17.29 Summary

What you learn in chapter 17 →

Chapter 18: Enhancing Page Text with Typography

18.1 Specifying the Typeface · 18.2 Lesson 18.1: Working with Font Stacks · 18.3 CSS · 18.4 HTML · 18.5 Specifying Web Fonts · 18.6 Lesson 18.2: Using Third-Party Hosted Fonts · 18.7 CSS · 18.8 HTML · 18.9 Lesson 18.3: Hosting Your Own Fonts · 18.10 CSS · 18.11 HTML · 18.12 Working with Text Styles · 18.13 Lesson 18.4: Styling Small Caps · 18.14 CSS · 18.15 HTML · 18.16 Lesson 18.5: Setting the Line Height · 18.17 Try This · 18.19 CSS · 18.21 Lesson 18.6: Using the Shorthand Font Property · 18.22 CSS · 18.23 HTML · 18.24 Web Typography Gallery · 18.25 Summary

What you learn in chapter 18 →

Chapter 19: Learning Advanced CSS Selectors

19.1 Working with ID Selectors · 19.2 Lesson 19.1: Using ID Selectors · 19.3 CSS · 19.4 HTML · 19.5 Best Practices: Classes Versus IDs · 19.6 Web Page Genealogy: Parents, Descendants, and Siblings · 19.7 Working with Contextual Selectors · 19.8 Lesson 19.2: The Descendant Selector · 19.9 CSS · 19.11 Lesson 19.3: The Child Selector · 19.12 CSS · 19.13 HTML · 19.14 Lesson 19.4: The Sibling Selector · 19.15 CSS · 19.16 HTML · 19.17 Taking Things up a Notch by Combining Selectors · 19.18 Lesson 19.5: The ::before and ::after Pseudo-elements · 19.19 CSS · 19.20 HTML · 19.21 Resetting CSS with the Universal Selector · 19.22 Styles: What a Tangled Web Page They Weave · 19.23 Lesson 19.6: Understanding Inheritance · 19.24 CSS · 19.25 HTML · 19.26 Lesson 19.7: Learning About the Cascade · 19.27 HTML · 19.28 Lesson 19.8: Introducing Specificity · 19.29 HTML · 19.30 Summary

What you learn in chapter 19 →

Chapter 20: Project: Creating a Portfolio Page

20.1 What You’ll Be Building · 20.2 Sketching the Layout · 20.3 Choosing Typefaces · 20.4 Choosing a Color Scheme · 20.5 Building the Page · 20.6 The Initial Structure · 20.7 Try This · 20.9 HTML · 20.10 The Overall Layout · 20.11 Try This · 20.12 CSS · 20.13 HTML · 20.14 The Header Section · 20.15 Try This · 20.17 CSS · 20.18 HTML · 20.19 Try This · 20.21 CSS · 20.22 The Portfolio Introduction · 20.23 Try This · 20.25 CSS · 20.27 The Portfolio · 20.28 Try This · 20.30 CSS · 20.31 HTML · 20.32 The About Section · 20.33 Try This · 20.35 CSS · 20.36 HTML · 20.37 The Contact Section · 20.38 Try This · 20.40 CSS · 20.41 HTML · 20.42 The Page Footer · 20.43 Try This · 20.45 CSS · 20.46 HTML · 20.47 From Here · 20.48 Summary

What you learn in chapter 20 →

Concepts explained in this book

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.