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
- CSS Introduction & Web Styling Architecture
- CSS Syntax, Rulesets & Declarations
- Methods of Adding CSS: External, Internal & Inline
- CSS Comments & Code Organization
- CSS Colors: Names, HEX, RGB, HSL & Modern Palettes
- CSS Backgrounds: Color, Image, Position & Gradients
2. Selectors & Specificity
- Simple Selectors: Universal (*), Type, Class (.) & ID (#)
- Combinator Selectors: Descendant, Child, Adjacent & Sibling
- Interactive Pseudo-Classes: :hover, :active & :focus
- Structural Pseudo-Classes: :first-child, :last-child & :nth-child()
- Pseudo-Elements: ::before, ::after, ::first-line & ::selection
- Attribute Selectors: Exact, Prefix, Suffix & Substring
- CSS Specificity, Inheritance & The Cascade Rule
3. Box Model & Sizing
- The CSS Box Model: Margin, Border, Padding & Content
- Box Sizing: content-box vs border-box
- Dimensions: width, height, min/max-width & min/max-height
- CSS Padding: Inner Spacing & Multi-value Shorthands
- CSS Margin, Auto Centering & Margin Collapsing
- CSS Borders, Outlines & Focus Rings
- Border Radius, Rounded Corners & Pill Badges
- Box Shadows: Multi-layer Elevation & Inset Glows
4. Typography & Text Styling
- Text Color, Alignment, Direction & Indentation
- Text Decoration, Transform, Spacing & Line Height
- Font Families, Web-Safe Stacks & Generic Fallbacks
- Font Sizing Units: px, rem, em, ch & Viewport Units
- Google Fonts & Custom Web Fonts via @font-face
- Styling Hyperlinks & State Management (LVHA order)
- Customizing HTML Lists & Bullet Markers
5. Layout & Positioning
- Display Property: block, inline, inline-block & none
- Display None vs Visibility Hidden vs Opacity 0
- Static & Relative Positioning
- Absolute & Fixed Positioning: Overlays, Badges & Floating Bars
- Sticky Positioning: Sticky Navigation Bars & Headers
- z-index & Stacking Context Hierarchy
- Overflow Management: visible, hidden, scroll & auto
6. Modern Flexbox Layout
- Flexbox Fundamentals & display: flex
- Flex Direction, Wrap & flex-flow
- Justify Content: Main Axis Distribution
- Align Items & Align Self: Cross Axis Alignment
- Flex Items: flex-grow, flex-shrink & flex-basis
- Practical Flexbox: Responsive Navbar, Media Objects & Cards
7. CSS Grid Architecture
- CSS Grid Overview & grid-template-columns
- Grid Gaps, Explicit Rows & Fractional Units (fr)
- Grid Placement: grid-column & grid-row Lines
- Named Grid Areas: Visual Page Layouts with grid-template-areas
- Responsive Grids with repeat(), auto-fit & minmax()
- Flexbox vs CSS Grid: When to Use Which
8. Visual FX, Animations & Responsive Design
- CSS 2D & 3D Transforms: translate, rotate, scale & skew
- CSS Transitions: Smooth Hover Effects & Timing Functions
- CSS Keyframe Animations: @keyframes & Infinite Loops
- Responsive Web Design & Viewport Meta Tag
- CSS Media Queries: Breakpoints for Mobile, Tablet & Desktop
- CSS Variables (Custom Properties --*) for Dark/Light Themes
- 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
No comments:
Post a Comment
Please do not enter any spam link in the comment box.