#web development
Posts tagged with “web development”.
39 posts
Character Encodings Explained: UTF-8 and Mojibake
A character is not a byte. Learn Unicode, UTF-8, the mojibake bug, and how to fix the encoding problems that produce garbled text.
Content Security Policy: A Practical Guide
CSP restricts what a page may load, which blunts a cross-site scripting attack. Learn the directives, the nonce, and the report-only mode.
Cookies Explained: Attributes, Scope and Security
Cookies carry state across requests. Learn the attributes, the SameSite values, the security flags, and the size and scope limits.
Core Web Vitals: LCP, INP and CLS Explained
LCP, INP and CLS measure loading, interactivity and visual stability. Learn the thresholds, the causes, and how to improve each one.
CORS Explained: Why Your Fetch Request Is Blocked
CORS is a browser rule, not a server one. Learn the preflight, the headers, the credentials, and how to fix the common errors.
Critical CSS Explained: Faster First Paint
Inlining the above-the-fold CSS removes a render-blocking request. Learn how to extract it, inline it, and load the rest asynchronously.
CSRF Explained: How It Works and How to Stop It
Cross-site request forgery makes a browser send an authenticated request. Learn the attack, the token defence, and SameSite cookies.
CSS Animations: A Practical Introduction
CSS animations run without JavaScript and perform well when you animate the right properties. Learn keyframes, timing, and accessibility.
The CSS Box Model Explained With Examples
Every element is a box of content, padding, border and margin. Learn how the box model works and why box-sizing changes everything.
CSS Custom Properties: Variables That Actually Work
Custom properties are live CSS variables with inheritance and cascade. Learn the syntax, theming patterns, and how they differ from preprocessor variables.
CSS Flexbox: A Complete Practical Guide
Flexbox lays out items along one axis. Learn the container and item properties, the common patterns, and the gotchas that trip people up.
CSS Grid: Two-Dimensional Layout Explained
CSS Grid lays out content in rows and columns at once. Learn the track syntax, named areas, auto-fit, and the patterns that replace old hacks.
CSS Positioning Explained: static to sticky
Static, relative, absolute, fixed and sticky each position an element differently. Learn the containing block and the common traps.
CSS Pseudo-Classes: A Practical Guide
Pseudo-classes select elements by state or position. Learn :hover, :focus-visible, :nth-child, :has, and the ones that matter most.
CSS Selectors: A Practical Cheatsheet
From a class to an attribute and a pseudo-class, learn the selectors you actually use and the ones that cause a specificity problem.
CSS Specificity Explained: How Conflicts Are Resolved
Specificity decides which CSS rule wins when several match. Learn the scoring, the cascade layers, and how to avoid specificity wars.
CSS Transforms: Translate, Rotate, Scale and Skew
CSS transforms move, rotate, scale and skew elements without affecting layout. Learn the functions, the origin, 3D, and performance.
CSS Units Explained: px, rem, em, vh and ch
Absolute and relative units each have a place. Learn when to use px, rem, em, vh, vw, ch and the newer viewport units in CSS.
Dark Mode in CSS: A Practical Implementation
Implement dark mode with prefers-color-scheme and custom properties. Learn the contrast, the images, and the flash of the wrong theme.
DNS Explained: How a Domain Name Becomes an IP
DNS resolves a name to an address through a chain of servers. Learn the record types, the caching, the TTL, and how to debug a lookup.
ETags Explained: Conditional Requests and 304s
An ETag is a fingerprint of a response. Learn how a conditional request works, the weak and strong forms, and the common mistakes.
The Fetch API: A Practical Guide
fetch is the modern way to make an HTTP request in the browser. Learn the response handling, the errors, the abort, and the streaming.
Fluid Typography With clamp(): A Practical Guide
clamp() scales a font size with the viewport without a media query. Learn the formula, the accessibility limits, and the pitfalls.
HTML Semantic Elements: Why They Matter and How to Use Them
Semantic HTML describes meaning, not appearance. Learn the elements, the accessibility and SEO benefits, and the common mistakes to avoid.
HTTP Caching Headers: Cache-Control Explained
Cache-Control, ETag and Vary decide what a browser and a CDN cache. Learn the directives, the revalidation, and the common mistakes.
JavaScript Array Methods: A Practical Reference
map, filter, reduce and friends are the core of modern JavaScript. Learn what each does, when to use it, and the mistakes to avoid.
JavaScript Dates: The Traps and How to Avoid Them
The Date object has real pitfalls: timezones, month indexing, and parsing. Learn the traps and the modern alternatives.
Debugging JavaScript With the Console: Beyond console.log
The console has more than log. Learn table, group, time, trace, and the DevTools features that make debugging faster.
JavaScript Destructuring: A Practical Guide
Destructuring pulls values out of arrays and objects into variables. Learn the syntax, defaults, renaming, and the nested patterns.
JavaScript Map and Set: When to Use Them
Map and Set are keyed collections with real advantages over objects and arrays. Learn the API, the differences, and when they win.
JavaScript Modules: ESM, CommonJS and How They Differ
Modules split code into files with explicit dependencies. Learn ESM syntax, the CommonJS differences, and the interop gotchas.
JavaScript Object Methods: A Practical Reference
Object.keys, entries, assign, freeze and the rest. Learn what each does, the shallow-copy trap, and the modern alternatives.
Optional Chaining and Nullish Coalescing in JavaScript
?. and ?? make null-safe access readable. Learn the syntax, the difference from ||, and the cases where they hide bugs.
JavaScript Performance: Practical Optimisation Tips
Most JavaScript is fast enough. Learn where the real bottlenecks are, how to measure, and the optimisations that actually matter.
JavaScript Regular Expressions: A Practical Guide
Regex is powerful and easy to get wrong. Learn the syntax, the flags, the common patterns, and how to test them safely.
The JavaScript Spread Operator: Uses and Traps
Spread expands an iterable into individual elements. Learn the copy, merge, and call patterns, plus the shallow-copy trap.
Mobile-First CSS: Why and How to Write It
Mobile-first means the base styles target small screens and larger screens add complexity. Learn the approach, the benefits, and the pitfalls.
Responsive Design Breakpoints: Choosing Them Properly
Breakpoints should follow your content, not device names. Learn how to choose them, the mobile-first approach, and modern alternatives.
HTTP Status Codes Explained: Practical Reference 2026
Every HTTP status code that matters in practice, which one your API should actually return, and the mistakes that cause confusing client and server bugs.