What Is CORS and Why Does the Browser Block Cross-Origin Requests?
CORS lets a server decide which origins can read its responses. Understand the same-origin policy, preflight requests and how to fix common CORS errors.
94 posts about CSS: questions with answers, tutorials and articles, newest first.
CORS lets a server decide which origins can read its responses. Understand the same-origin policy, preflight requests and how to fix common CORS errors.
The :not() pseudo-class selects elements that do not match a selector. See its syntax, selector lists, specificity and common patterns with examples.
Learn how Cache-Control controls freshness and how ETag validation returns 304 Not Modified, with ready-to-use header settings for assets, HTML and APIs.
Pseudo-elements style parts of an element without extra HTML. See how ::before and ::after, the content property and other pseudo-elements work in practice.
Cookies give stateless HTTP a memory. See how Set-Cookie and Cookie headers work, what each attribute does and how browsers store and send cookies.
Select elements by their position among siblings with :first-child, :last-child and :nth-child(an+b), with stripe patterns, the of S filter and common traps.
HTTPS is HTTP sent through a TLS-encrypted connection. Learn what it protects, how the handshake and certificates work, and how to migrate a site safely.
Pseudo-classes style an element by state. Learn :hover, :focus, :focus-visible and :active, the correct link order and accessible patterns.
A practical tour of HTTP headers: content, authentication, caching, cookie and security headers, and how to read and set them with curl and fetch.
Pass an object with camelCase keys to the style prop to apply inline styles in React, and learn when CSS classes are the better choice.
The ^=, $= and *= operators match the start, end or any part of an attribute value in CSS. Learn each one with real link and file examples.
A practical guide to HTTP status codes: what 2xx, 3xx, 4xx and 5xx mean, the most common codes and how to check them while debugging.
Attribute selectors match elements by an attribute or its value. See the presence, exact, word and prefix forms with practical form and link examples.
The id attribute names one unique element and the class attribute groups many. Learn when to use each with CSS, JavaScript and accessibility examples.
A clear guide to the five common HTTP methods, what each one does, which are safe or idempotent and how to send them with fetch.
The + combinator selects the next sibling and ~ selects all later siblings. Learn how they work, where they fall short, and how :has() helps.
HTTP is the protocol browsers and servers use to exchange data. See how one request and response work, with real examples in curl and JavaScript.
The descendant combinator matches nested elements at any depth, while the child combinator matches direct children only. Examples included.
Static sites serve pre-built files, dynamic sites generate pages per request. Learn how they differ in speed, cost, security and use cases.
Group selectors with commas so several elements share one CSS rule. See how the comma works, how specificity is kept, and when to use :is().