Skip to Content
Skip to content
PROGRAMMING

HTML and CSS Tutorials

Practical HTML and CSS tutorials for fixing common layout and accessibility issues: auditing contrast and keyboard focus paths, stopping horizontal overflow on phones, building responsive grids without brittle breakpoints, and structuring accessible forms.

Each guide uses minimal HTML/CSS examples you can open directly in a browser and inspect.

HTML and CSS
Stop Layout Shift From Web Fonts Level: Advanced

Compute size-adjust and the vertical overrides from the font files, build the fallback face, and measure the layout shift before and after.

HTML and CSS
Dark Mode With prefers-color-scheme and One Token File Level: Advanced

Use one token file with light-dark(), add a saved toggle that does not flash, and check the colours in both themes.

HTML and CSS
CSS Custom Properties for Theming a Multi-Brand Site Level: Advanced

Switch brands with a data attribute, and avoid the derived-token trap that freezes hover colours on the wrong value.

HTML and CSS
Find Unused CSS Before It Bloats Production Level: Advanced

Record coverage in Chrome DevTools, test the states that hide rules, and remove dead CSS in small, reversible steps.

HTML and CSS
Audit Contrast and Focus Paths Before You Ship Level: Advanced

Measure contrast by number, run axe, and walk the keyboard focus path with a script to catch what the tool cannot see.