Module 3:
Introduction to CSS
Materials
| Assigned Reading | Chapter 3 of Web Development and Design Foundations |
| Slideshow | Module 3: Introduction to CSS |
| Lab | Joystick Junkies Lab 3 |
| Optional Reading |
Lessons, Articles, and Exercises
Some of the material in this Module is covered in the WebDevStudents.com Lessons and Articles listed below. The WebDevStudents.com quizzes have some overlap with the quizzes in D2L.
Lessons
- Introduction to CSS — Learn what CSS is, how it works alongside HTML, and how to add your first inline style to a page.
- How CSS Cascades — Discover how the cascade, specificity, and inheritance rules determine which CSS styles take effect when multiple rules target the same element.
- CSS Syntax: Selectors, Properties, and Values — Learn the three-part structure of every CSS rule: selector, property, and value, plus the punctuation rules that hold it all together.
- Three Ways to Add CSS to Your HTML — Explore the three methods for adding CSS to your HTML and learn when each approach makes sense for your project.
- Attaching an External Stylesheet — Learn how to link a separate CSS file to your HTML pages so you can control the look of your entire site from one central place.
- CSS Colors — Explore the different ways to specify color in CSS, including named colors, hex codes, and RGB values.
- RGBA Colors — Take your color skills further with RGBA values, which let you control not just the color of an element but how transparent or opaque it appears.
- Font Families and Google Fonts — Learn how to set font families in CSS and how to pull in hundreds of free, professional typefaces directly from Google Fonts.
- Font and Text Properties — Control text size, weight, line height, spacing, and alignment with CSS’s powerful set of font and text properties.
- Classes and IDs — Learn how to use classes and IDs to apply CSS styles precisely, whether you’re targeting one element, a group, or something that appears only once on the page.
- CSS Indentation and Comments — Learn how to indent CSS properties and use comments to label sections of your stylesheet, so your code stays readable as it grows.
Practice Exercises
- CSS Flashcards — Review CSS properties and values with interactive flashcards.
- CSS Quiz — Test your knowledge of CSS selectors, properties, and the cascade.
- Joystick Junkies (Lab 3) — Apply your CSS skills to the ongoing Joystick Junkies project.
