Rendered from pseudo-classes/allowed.md

Pseudo-classes lab — Allowed

This file is the gauge for everything in pseudo-classes/. Do not use anything outside this list.

Scope: the foundational Flexbox controls demonstrated in lessons 1–5 only, plus these pseudo-classes: :hover, :focus, :active, :visited, :first-child, :nth-child(). Promotion of the Flexbox chapter does not expand this lab to its advanced properties.

HTML tags allowed

Document structure

Content / controls

CSS properties allowed

Pseudo-classes allowed

Allowed at-rules

Allowed display values

Allowed Flexbox values

Use only justify-content, align-items, flex-direction, and gap with the values demonstrated in ../flexbox/01-playground.html through 05-stack.html.

Advanced properties from lessons 6–9—flex-wrap, flex-grow, flex-shrink, flex-basis, flex, align-self, align-content, and order—are outside this lab’s scope.

Not allowed

Attributes allowed (as needed)

Pages

File Purpose
01-basics.html :hover, :active, :focus on buttons and inputs
02-nav.html Nav/chips :hover + link :visited
03-cards.html Card / tile :hover (and nested hover)
04-lists.html :first-child and :nth-child patterns

Rules to lean on

43–48 (pseudo-classes), 72–80 (semantic HTML), 2 (contrast), 7–10 / 42 (Flexbox), 32 (lang), 15–19 (alt).