Custom Properties (CSS Variables): The Token System Every Project Needs
Use CSS custom properties as design tokens: primitive, semantic and component tiers, dark mode, @property, fallbacks, and the…
Tag
26 articles
Use CSS custom properties as design tokens: primitive, semantic and component tiers, dark mode, @property, fallbacks, and the…
Advanced CSS selectors explained: the four combinators, attribute operators, structural and form pseudo-classes, and :is(), :where() and :not().
The CSS box model explained: box-sizing, margin collapse, display types, formatting contexts, containing blocks, and a fix for…
CSS cascade specificity inheritance explained: how the browser sorts declarations, scores selectors, and falls back when nothing matches.
How I load data without a page refresh using jQuery AJAX: .load() with a fragment selector, a JSON…
The jQuery interview questions I would ask, with short model answers and code run on jQuery 1.11.0: attr…
How I set up jQuery form validation with the Validate plugin: rules and messages, class-based rules, submitHandler, a…
How I use jQuery .each() and $.each() on elements, arrays and objects: break and continue, the this trap,…
How I handle events in jQuery 1.9: .on() vs .click(), delegation for elements added later, this vs e.target,…
How I choose between jQuery append, prepend, html and text: insert positions, return values, moving vs cloning, why…
How I write jQuery AJAX calls that fail gracefully: $.ajax GET and POST, sending JSON, done, fail and…
How I pick jQuery selectors on real pages: ID, class, attribute and pseudo-selectors, form filters, the zero-based :even…