Learn CSS — Basic
Style pages with selectors, colors, typography, the box model, Flexbox and Grid. Practice responsive layouts, print styles and interaction states on local course pages.
COURSE OVERVIEWREADY
Lessons: 39
Quizzes: 7
All steps: 46
$Ready to start
What you will learn
- Choose selectors and understand the cascade, inheritance and rule specificity.
- Style text, colors, backgrounds and borders, and calculate dimensions using the box model.
- Build layouts with Flexbox and Grid, choosing spacing, alignment and behavior on small screens.
- Use media queries, image aspect ratios, print styles and clear hover and focus states with reduced motion in mind.
SYLLABUS / 46
Course curriculum
Work through the curriculum step by step. Completed stages are marked, and you can open the next available stage.
39 lessons7 quizzes46 steps total
- 01LESSONLESSON 1: CSS syntax, rule, selector, declaration, commentsAvailable now
- 02LESSONLESSON 2: Cascade and inheritance (introduction): who “wins” and whyLocked
- 03LESSONLESSON 3: Specificity (simple model) and source orderLocked
- 04LESSONLESSON 4: Boxes: box model, content/padding/border/marginLocked
- 05LESSONLESSON 5: Units: px, %, em, rem, vh/vw, ch, ex, lhLocked
- 06LESSONLESSON 6: Colors: hex, rgb(), hsl(), transparencyLocked
- 01QUIZQuiz 1: lessons 1–6Locked
- 07LESSONLESSON 7: Display and normal flow: block/inline/inline-blockLocked
- 08LESSONLESSON 8: DevTools for CSS: inspector, box model, live editsLocked
- 09LESSONLESSON 9: Type/class/ID selectors, combining selectorsLocked
- 10LESSONLESSON 10: Combinators: descendant, child, adjacent, siblingLocked
- 11LESSONLESSON 11: Attribute selectors [attr] (simple matches)Locked
- 12LESSONLESSON 12: UI pseudo-classes: :hover, :focus, :active, :focus-visibleLocked
- 02QUIZQuiz 2: lessons 7–12Locked
- 13LESSONLESSON 13: ::before/::after pseudo-elements and generated contentLocked
- 14LESSONLESSON 14: :is() and :where() — safe grouping (basics)Locked
- 15LESSONLESSON 15: Font family, fallback stack, metricsLocked
- 16LESSONLESSON 16: Size, line height, letter/word spacingLocked
- 17LESSONLESSON 17: Line length, text-wrap and hyphens in selected viewsLocked
- 18LESSONLESSON 18: Text decorations, text-transform, white-spaceLocked
- 03QUIZQuiz 3: lessons 13–18Locked
- 19LESSONLESSON 19: Backgrounds and sizes: background, multiple backgroundsLocked
- 20LESSONLESSON 20: Borders and border-radius (card patterns)Locked
- 21LESSONLESSON 21: box-shadow shadows, outline vs borderLocked
- 22LESSONLESSON 22: Images in a frame: object-fit, object-positionLocked
- 23LESSONLESSON 23: Margins (collapse), centering on the inline axisLocked
- 24LESSONLESSON 24: Positioning: relative/absolute/fixed/stickyLocked
- 04QUIZQuiz 4: lessons 19–24Locked
- 25LESSONLESSON 25: Stacking context, z-index, and stacking contextLocked
- 26LESSONLESSON 26: Historical flow: float/clear (only to understand it)Locked
- 27LESSONLESSON 27: Flex container and the main/cross axisLocked
- 28LESSONLESSON 28: Distribution in flex: justify-content, align-itemsLocked
- 29LESSONLESSON 29: Wrapping and sizing: flex-wrap, flex-basis/grow/shrinkLocked
- 05QUIZQuiz 5: lessons 25–29Locked
- 30LESSONLESSON 30: Aligning individual items: align-selfLocked
- 31LESSONLESSON 31: Defining a grid: grid-template-columns/rows, gapLocked
- 32LESSONLESSON 32: Positioning elements, grid-column/rowLocked
- 33LESSONLESSON 33: Auto placement, fr, minmax() (intro)Locked
- 34LESSONLESSON 34: Layout patterns: card and gallery templatesLocked
- 06QUIZQuiz 6: lessons 30–34Locked
- 35LESSONLESSON 35: Media queries: mobile-first, width breakpointsLocked
- 36LESSONLESSON 36: Proportions: aspect-ratio and responsive mediaLocked
- 37LESSONLESSON 37: The calc()/min()/max()/clamp() functions (intro)Locked
- 38LESSONLESSON 38: Printing: @media print — basicsLocked
- 39LESSONLESSON 39: Button and card — from “raw” HTML to styleLocked
- 07QUIZQuiz 7: lessons 35–39Locked
- +EXAMConfirm your skills with an examPreparing with this course is optional. You can choose a certification exam for this language and level without completing the course or quizzes. Check your account access and confirm exam authorization.Other status