更新时间:2022-06-01 17:18:17
封面
版权信息
Preface
About the Book
1. Introduction to HTML and CSS
Introduction
HTML
Structuring an HTML Document
Mistakes in HTML
Validating HTML
CSS
CSSOM
CSS Selectors
CSS Specificity
The Special Case of !important
Dev Tools
How a Web Page Renders
Summary
2. Structure and Layout
Structural Elements
Wireframes
CSS Page Layouts
The Box Model
3. Text and Typography
Text-Based Elements
Semantic Markup
Styling Text-Based Elements
Breadcrumbs
4. Forms
Form Elements
Styling Form Elements
5. Themes Colors and Polish
6. Responsive Web Design and Media Queries
Mobile-First
7. Media – Audio Video and Canvas
Audio
The video Element
Limitations
The track Element
Images
Gradients
Animating a Canvas
8. Animations
CSS Transitions
9. Accessibility
What Is Accessibility?
Accessible Images
Semantic HTML
Accessible Forms
Keyboard Accessibility
Accessible Motion
Accessibility Tools
10. Preprocessors and Tooling
Introduction to CSS Preprocessors
Getting Started with Node.js npm and SASS
SCSS Introduction
Nesting in SCSS
Import Control Directives and Mixins in SCSS
Loops in SCSS
11. Maintainable CSS
Introduction to Maintainable CSS
Block Element and Modifier
Using BEM Markup with SCSS
Structuring Your SCSS into Maintainable Files
Good Practices for Maintainable CSS
12. Web Components
Custom Elements
Shadow DOM
HTML Templates
Sharing a Web Component
13. The Future of HTML and CSS
Keeping up with the Web
Caniuse
CSS Houdini
Custom Properties
Progressive Enhancement
Appendix
Chapter 1: Introduction to HTML and CSS