Control page appearance and adapt layouts to different screen sizes.

Before starting: HTML elements, attributes, classes, and document structure.

Practice project: Style the timetable for small and large screens and test keyboard focus.

1. CSS Basics & Core Syntax

  1. CSS Introduction & Web Styling Architecture
  2. CSS Syntax, Rulesets & Declarations
  3. Methods of Adding CSS: External, Internal & Inline
  4. CSS Comments & Code Organization
  5. CSS Colors: Names, HEX, RGB, HSL & Modern Palettes
  6. CSS Backgrounds: Color, Image, Position & Gradients

2. Selectors & Specificity

  1. Simple Selectors: Universal (*), Type, Class (.) & ID (#)
  2. Combinator Selectors: Descendant, Child, Adjacent & Sibling
  3. Interactive Pseudo-Classes: :hover, :active & :focus
  4. Structural Pseudo-Classes: :first-child, :last-child & :nth-child()
  5. Pseudo-Elements: ::before, ::after, ::first-line & ::selection
  6. Attribute Selectors: Exact, Prefix, Suffix & Substring
  7. CSS Specificity, Inheritance & The Cascade Rule

3. Box Model & Sizing

  1. The CSS Box Model: Margin, Border, Padding & Content
  2. Box Sizing: content-box vs border-box
  3. Dimensions: width, height, min/max-width & min/max-height
  4. CSS Padding: Inner Spacing & Multi-value Shorthands
  5. CSS Margin, Auto Centering & Margin Collapsing
  6. CSS Borders, Outlines & Focus Rings
  7. Border Radius, Rounded Corners & Pill Badges
  8. Box Shadows: Multi-layer Elevation & Inset Glows

4. Typography & Text Styling

  1. Text Color, Alignment, Direction & Indentation
  2. Text Decoration, Transform, Spacing & Line Height
  3. Font Families, Web-Safe Stacks & Generic Fallbacks
  4. Font Sizing Units: px, rem, em, ch & Viewport Units
  5. Google Fonts & Custom Web Fonts via @font-face
  6. Styling Hyperlinks & State Management (LVHA order)
  7. Customizing HTML Lists & Bullet Markers

5. Layout & Positioning

  1. Display Property: block, inline, inline-block & none
  2. Display None vs Visibility Hidden vs Opacity 0
  3. Static & Relative Positioning
  4. Absolute & Fixed Positioning: Overlays, Badges & Floating Bars
  5. Sticky Positioning: Sticky Navigation Bars & Headers
  6. z-index & Stacking Context Hierarchy
  7. Overflow Management: visible, hidden, scroll & auto

6. Modern Flexbox Layout

  1. Flexbox Fundamentals & display: flex
  2. Flex Direction, Wrap & flex-flow
  3. Justify Content: Main Axis Distribution
  4. Align Items & Align Self: Cross Axis Alignment
  5. Flex Items: flex-grow, flex-shrink & flex-basis
  6. Practical Flexbox: Responsive Navbar, Media Objects & Cards

7. CSS Grid Architecture

  1. CSS Grid Overview & grid-template-columns
  2. Grid Gaps, Explicit Rows & Fractional Units (fr)
  3. Grid Placement: grid-column & grid-row Lines
  4. Named Grid Areas: Visual Page Layouts with grid-template-areas
  5. Responsive Grids with repeat(), auto-fit & minmax()
  6. Flexbox vs CSS Grid: When to Use Which

8. Visual FX, Animations & Responsive Design

  1. CSS 2D & 3D Transforms: translate, rotate, scale & skew
  2. CSS Transitions: Smooth Hover Effects & Timing Functions
  3. CSS Keyframe Animations: @keyframes & Infinite Loops
  4. Responsive Web Design & Viewport Meta Tag
  5. CSS Media Queries: Breakpoints for Mobile, Tablet & Desktop
  6. CSS Variables (Custom Properties --*) for Dark/Light Themes
  7. Modern UI Styling: Glassmorphism, Backdrop Filters & Card Glows

Build and check keyboard-accessible controls

A visible control also needs a name and a predictable keyboard action. A label linked by for and id gives the input an accessible name. A native button supports keyboard activation. CSS can improve appearance, but must preserve visible focus. Client validation helps users; the server must still validate submitted data.

Any modern browser; no framework dependency

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>Study reminder</title>
<style>
  :focus-visible { outline: 3px solid #075985; outline-offset: 3px; }
</style>
<form action="" method="get">
  <label for="topic">Topic to revise</label>
  <input id="topic" name="topic" required>
  <button type="submit">Save reminder</button>
</form>
</html>
Check the output
The page displays a labeled field and a button. Submitting a nonempty value adds topic to the URL; this example has no server-side storage.

Add help text using aria-describedby. Test keyboard use at 200% zoom and confirm that the text remains readable.

Open the CSS learning path on DevStudyHub · Play coding games on this blog

logoblog

No comments:

Post a Comment

Please do not enter any spam link in the comment box.