🇮🇳 Full Stack Web Development · subject

Full Stack Web Development CSS3 & Responsive Design Syllabus

The CSS3 & Responsive Design syllabus for Full Stack Web Development in full: 4 chapters, 15 topics and 38 sub-topics, every one listed below, plus 51 CSS3 & Responsive Design flashcards with answers.

4Chapters
15Topics
38Sub-topics
51Flashcards

CSS3 & Responsive Design syllabus: all 4 chapters

Expand any chapter to see its topics and sub-topics.

  1. CSS Fundamentals

    4 topics
    • Applying CSS
      • Inline, internal and external stylesheets
      • Linking and cascade order
    • Selectors and Specificity
      • Element, class and ID selectors
      • Attribute and pseudo-class selectors
      • Combinators (descendant, child, sibling)
      • Specificity calculation and !important
    • Colors, Units and Typography
      • Color formats (hex, rgb, hsl)
      • Absolute and relative units (px, em, rem, %)
      • Web fonts and font properties
    • The Box Model
      • Margin, border, padding and content
      • box-sizing property
  2. Layout Techniques

    4 topics
    • Display and Positioning
      • display values
      • Static, relative, absolute, fixed, sticky
      • z-index and stacking context
    • Flexbox
      • Flex container and items
      • justify-content and align-items
      • flex-grow, shrink and basis
    • CSS Grid
      • Grid template rows and columns
      • Grid areas and gaps
      • Implicit vs explicit grids
    • Float and Legacy Layouts
      • Float and clear
      • Clearfix technique
  3. Responsive and Adaptive Design

    3 topics
    • Media Queries
      • Breakpoints and viewport widths
      • min-width and max-width queries
    • Mobile-first Approach
      • Progressive enhancement
      • Fluid grids and flexible images
    • Responsive Units and Functions
      • vw, vh and clamp()
      • min(), max() and calc()
  4. Advanced Styling

    4 topics
    • Transitions and Animations
      • transition properties and timing
      • @keyframes and animation
      • Transforms (translate, rotate, scale)
    • CSS Variables
      • Custom properties (--var)
      • var() and theming
    • CSS Frameworks and Methodologies
      • Bootstrap grid and utilities
      • Tailwind CSS utility-first approach
      • BEM naming convention
    • Preprocessors
      • Sass/SCSS nesting and variables
      • Mixins and partials

Full Stack Web Development CSS3 & Responsive Design flashcards — 51 questions with answers

  1. What are the three main ways to apply CSS to an HTML document?

    Inline styles (style attribute on an element), internal/embedded styles (<style> in <head>), and external stylesheets (linked via <link rel="stylesheet" href="...">).

  2. In CSS, what is the basic anatomy of a rule set?

    A selector followed by a declaration block in braces. Each declaration is a property:value pair ending in a semicolon, e.g. p { color: red; }.

  3. What does the universal selector (*) match, and what is a common use for it?

    It matches every element. It's commonly used to reset or set base styles, e.g. * { margin: 0; box-sizing: border-box; }.

  4. How do you select an element by its id versus by its class in CSS?

    By id with a hash (#myId) and by class with a dot (.myClass). Ids should be unique per page; classes can be reused.

  5. What is the difference between the descendant combinator (space) and the child combinator (>)?

    The descendant combinator (A B) matches any B nested at any depth inside A; the child combinator (A > B) matches only B that is a direct child of A.

  6. What do the adjacent sibling (+) and general sibling (~) combinators select?

    A + B selects the B immediately following A (same parent); A ~ B selects all B siblings that come after A (same parent).

  7. How is CSS specificity calculated?

    As a tuple counting (inline styles, ids, classes/attributes/pseudo-classes, elements/pseudo-elements). Compare left to right; the higher wins. The universal selector adds nothing.

  8. Give the specificity values for an id selector, a class selector, and a type (element) selector.

    Id = (0,1,0,0); class = (0,0,1,0); element = (0,0,0,1). Inline style = (1,0,0,0).

  9. What does !important do, and where does it rank in the cascade?

    It overrides normal specificity for that declaration, forcing it to win over non-important declarations. Among competing !important rules, normal specificity then decides.

  10. What is the difference between a pseudo-class and a pseudo-element?

    A pseudo-class (e.g. :hover, :first-child) targets an element in a particular state; a pseudo-element (e.g. ::before, ::first-line) styles a specific part of an element. Pseudo-elements use double colons.

  11. What are the four ways to specify a color in CSS3?

    Named colors (e.g. red), hexadecimal (#ff0000), rgb()/rgba(), and hsl()/hsla(). RGBA and HSLA add an alpha (opacity) channel.

  12. In hsl(), what do the three values represent?

    Hue (0–360 degrees on the color wheel), Saturation (0–100%), and Lightness (0–100%).

  13. What is the difference between absolute and relative length units in CSS? Give examples.

    Absolute units have fixed sizes (px, cm, in, pt); relative units scale to another value (em, rem, %, vw, vh, ch). Relative units adapt better to responsive design.

  14. What is the difference between em and rem units?

    em is relative to the font-size of the current element (or its parent for font-size itself); rem is always relative to the root (<html>) font-size, avoiding compounding.

  15. What do the vw and vh units represent?

    1vw = 1% of the viewport width; 1vh = 1% of the viewport height. vmin/vmax are 1% of the smaller/larger viewport dimension.

  16. What CSS properties control typography weight, style, and line spacing?

    font-weight (e.g. normal, bold, 100–900), font-style (normal, italic, oblique), and line-height for vertical spacing between lines.

  17. What does the font shorthand property's required order include?

    At minimum font-size and font-family (in that order at the end), e.g. font: italic bold 16px/1.5 Arial, sans-serif. font-style/variant/weight come first, line-height after a slash.

  18. What are the four components of the CSS box model, from inside out?

    Content, padding, border, and margin.

  19. How does box-sizing: border-box differ from the default content-box?

    With content-box, width/height apply only to the content (padding and border add to the total size). With border-box, width/height include content, padding, and border.

  20. What is margin collapsing?

    When vertical margins of adjacent block elements (or parent/child) touch, they combine into a single margin equal to the larger of the two rather than summing.

Show the other 31 CSS3 & Responsive Design flashcards
  1. With content-box sizing, what is the total rendered width of an element with width:200px, padding:20px, border:5px?

    250px. Total = 200 + (20×2 padding) + (5×2 border) = 200 + 40 + 10 = 250px.

  2. What are the main values of the CSS display property?

    block, inline, inline-block, flex, grid, none, and table-related values. block takes full width and stacks; inline flows in text; inline-block flows but accepts width/height.

  3. What are the five values of the position property and their key behavior?

    static (default, normal flow), relative (offset from its normal spot), absolute (positioned relative to nearest positioned ancestor), fixed (relative to viewport), sticky (toggles between relative and fixed at a scroll threshold).

  4. What does z-index control, and on which elements does it work?

    z-index controls stacking order along the z-axis (higher is in front). It only applies to positioned elements (position other than static) and flex/grid items.

  5. What is a containing block for an absolutely positioned element?

    The nearest ancestor with a position value other than static; if none exists, it is the initial containing block (the viewport/<html>).

  6. In Flexbox, what is the difference between justify-content and align-items?

    justify-content aligns items along the main axis; align-items aligns items along the cross axis (perpendicular to the main axis).

  7. What does flex-direction control, and what are its values?

    It sets the main axis direction: row (default, left-to-right), row-reverse, column (top-to-bottom), and column-reverse.

  8. What three sub-properties does the flex shorthand combine?

    flex-grow, flex-shrink, and flex-basis. For example, flex: 1 1 0 means grow=1, shrink=1, basis=0.

  9. What does flex-grow do versus flex-shrink?

    flex-grow sets how much an item expands to fill extra free space; flex-shrink sets how much it contracts when there isn't enough space.

  10. How do you allow flex items to wrap onto multiple lines?

    Set flex-wrap: wrap on the flex container (default is nowrap). align-content then controls spacing of the wrapped lines on the cross axis.

  11. How do you define columns and rows in CSS Grid?

    With grid-template-columns and grid-template-rows on the container, e.g. grid-template-columns: 1fr 2fr 1fr defines three columns sized by fractional units.

  12. What is the fr unit in CSS Grid?

    A fractional unit representing a share of the available free space in the grid container after fixed-size tracks are allocated.

  13. What does the repeat() function with auto-fit/auto-fill do in Grid?

    It creates a repeating track pattern, e.g. repeat(auto-fit, minmax(200px, 1fr)) makes as many columns as fit, each at least 200px, creating responsive grids without media queries.

  14. What is the difference between grid-template-columns gap and the gap property?

    gap (formerly grid-gap) sets spacing between grid tracks (rows and columns), e.g. gap: 10px 20px sets 10px row gap and 20px column gap. It also works in Flexbox.

  15. How were layouts traditionally built with the float property?

    Elements were floated left/right so other content wrapped around them; multi-column layouts used floats plus clearfix hacks. This is legacy; Flexbox and Grid are preferred today.

  16. What problem does the clearfix technique solve?

    A floated child is removed from normal flow, so its parent collapses to zero height. Clearfix (e.g. ::after { content:''; display:block; clear:both; }) forces the parent to contain its floats.

  17. What does the clear property do?

    It prevents an element from sitting next to floated elements; clear: left, right, or both pushes the element below the respective floats.

  18. What is the basic syntax of a CSS media query?

    @media media-type and (feature) { rules }, e.g. @media screen and (max-width: 768px) { ... } applies rules only when the condition matches.

  19. What is the difference between min-width and max-width in media queries?

    min-width applies styles when the viewport is at least that wide (mobile-first); max-width applies when the viewport is at most that wide (desktop-first).

  20. What is a breakpoint in responsive design?

    A viewport width (defined in a media query) at which the layout changes to better fit the screen size, e.g. switching from a single column to multiple columns.

  21. What is the mobile-first approach to CSS?

    Writing base styles for the smallest screens first, then using min-width media queries to progressively add styles/enhancements for larger screens. It encourages performance and content prioritization.

  22. Why is the viewport meta tag essential for responsive design?

    <meta name="viewport" content="width=device-width, initial-scale=1"> tells mobile browsers to match the layout width to the device width instead of zooming out a desktop-width page.

  23. What does the CSS clamp() function do?

    clamp(min, preferred, max) returns the preferred value bounded between min and max. It's used for fluid responsive sizing, e.g. font-size: clamp(1rem, 2.5vw, 2rem).

  24. What do the min() and max() CSS functions do?

    min() returns the smallest of its comma-separated values; max() returns the largest. They allow responsive values without media queries, e.g. width: min(90%, 1200px).

  25. What is the calc() function used for in CSS?

    It performs arithmetic to compute a value, mixing units, e.g. width: calc(100% - 80px). Operators are + - * /, and +/- require spaces around them.

  26. What three things must a CSS transition specify, and what is the shorthand order?

    The property, duration, timing-function, and optional delay. Shorthand: transition: property duration timing-function delay, e.g. transition: all 0.3s ease-in-out 0s.

  27. How do you create a CSS @keyframes animation and apply it?

    Define @keyframes name { from/0% {...} to/100% {...} } then apply with the animation property (animation: name duration timing-function delay iteration-count direction).

  28. What is the difference between a CSS transition and a CSS animation?

    A transition animates between two states triggered by a change (e.g. :hover) and needs a trigger; an animation uses @keyframes, can have multiple steps, runs automatically, and can loop.

  29. How do you declare and use a CSS custom property (variable)?

    Declare it with a double-dash name (e.g. :root { --main-color: #333; }) and use it with var(--main-color). var() accepts an optional fallback: var(--x, blue).

  30. What is the difference between a CSS framework (e.g. Bootstrap, Tailwind) and a CSS methodology (e.g. BEM)?

    A framework is prewritten CSS/components you import; a methodology is a naming/organization convention for writing maintainable CSS. BEM (Block__Element--Modifier) is a naming methodology; Tailwind is a utility-first framework.

  31. What is a CSS preprocessor and what does it add over plain CSS?

    A tool (Sass/SCSS, Less, Stylus) that compiles an extended syntax into CSS, adding features like variables, nesting, mixins, functions, and partials/imports for reuse and maintainability.

Full Stack Web Development CSS3 & Responsive Design FAQ

What is in the Full Stack Web Development CSS3 & Responsive Design syllabus?

Full Stack Web Development CSS3 & Responsive Design is split into 4 chapters: CSS Fundamentals, Layout Techniques, Responsive and Adaptive Design and Advanced Styling. Together they contain 15 topics and 38 sub-topics.

How many chapters are in Full Stack Web Development CSS3 & Responsive Design?

4 chapters, containing 15 topics and 38 sub-topics. The largest chapter is CSS Fundamentals, with 4 topics.

Are there flashcards for Full Stack Web Development CSS3 & Responsive Design?

Yes — a 51-card CSS3 & Responsive Design deck, printed in full in the flashcards section of this page and available in the Examius app with spaced repetition. The free plan covers one exam of your choice, including its flashcards; Examius Pro, a one-time purchase, unlocks every other exam and deck.