Course Overview
CSS
CSS (Cascading Style Sheets) controls how an HTML page looks: its colors, text, spacing, and layout. You should already recognize basic HTML elements, classes, and links. The HTML course introduced simple color and text-size declarations; this course explains how they work and builds the layout skills that HTML did not cover. JavaScript comes afterward, followed by a vanilla-JavaScript DOM course.
Most visual topics start with a working example. Focused lessons fill gaps where another demo would repeat the same idea. Read its stylesheet, change one value, and use the preview to see what that value does. The following exercise gives you a different page so you can try the technique yourself. The HTML is supplied; edit style.css unless a task specifically asks you to change the markup. Numbered TODO comments mark each edit site. Empty rules at the end are places to add your declarations; they extend or override the supplied rules above without removing the page’s setup.
Start with individual elements and cards, then use selectors and spacing in a menu and form. Flexbox and Grid introduce ways to arrange several elements together. Later projects add motion and adapt layouts to smaller screens. Each project includes its own starting files, so you do not need to copy your work from an earlier lesson.
Working through an exercise
- Read the setup to see what is already supplied.
- Make the first numbered change, then press Run and look for its effect in the preview.
- Press Submit to check your work. You can check an unfinished exercise; completed tasks should earn their own checkmarks.
- Continue one task at a time. If a check fails, use its message to find the element or CSS property to revisit.
A CSS rule can be valid without producing the result you intended. Compare the preview with the lesson's checkpoint, not just the test result. For responsive lessons, pay attention to the width of the preview area: it can be narrower than your browser window.
What you will learn
- Write CSS rules and choose the elements they affect.
- Use color, type, spacing, and borders to make content readable.
- Arrange content with positioning, Flexbox, and Grid.
- Reuse values, add restrained motion, and adapt layouts to the available space.
Course outline
- Foundations: rules, selectors, and specificity
- Visual style: color, backgrounds, type, and borders
- Layout fundamentals: boxes, display, positioning, and overflow
- Selectors in depth: relationships and interactive states
- Apply those basics in a dropdown menu and styled form
- Learn Flexbox and Grid, then combine them in a page
- Add variables, transforms, and animation
- Make layouts responsive, then apply them to a table and profile sheet
Recommended background
Already familiar with these topics? You can start and finish this course without completing the recommendations. Knowledge gained elsewhere is enough; no waiver is needed.
- Introduction to HTML
Understand elements, attributes, and HTML page structure before styling pages.