All tags
web-development
Narrow down
CSS68
- Tip
@media (prefers-color-scheme: dark) {Test dark mode in Chrome DevTools without changing your OS themeSwitches the page between light and dark styling from inside DevTools.2 Dec 2026 - Tip
.notice:empty {CSS :empty hides elements that have no contentMatches elements with no children, so empty wrappers can be hidden or styled differently.2 Dec 2026 - Tip
Inspector > click the "grid" badgeThe grid badge in Firefox's Inspector draws your layout's lines on the pageSee grid lines, line numbers and area names directly over the page.1 Dec 2026 - Tip
.toast {The CSS linear() easing function gives transitions a bounce or springA list of points creates easing curves that cubic-bezier() cannot express.30 Nov 2026 - Tip
article { counter-reset: h2; }CSS counters number your headings 1, 1.1, 1.2 without typing the numbersSection numbers update by themselves when you add or move a heading.30 Nov 2026 - Tip
.toolbar {Gap in a CSS flexbox replaces margins between itemsSpacing goes only between items, with no margin on the first or last one.30 Nov 2026 - Tip
@font-face {size-adjust in a CSS @font-face makes the fallback font match your web fontA scaled local fallback font reduces the layout jump when the web font arrives.30 Nov 2026 - Tip
transition: scale 0.2s;The CSS translate, rotate and scale properties change one transform without losing the othersA hover scale no longer wipes out the translate that positions the element.30 Nov 2026 - Tip
content="width=device-width, initial-scale=1, viewport-fit=cover">Env(safe-area-inset-bottom) in CSS keeps buttons clear of the iPhone home barA fixed bottom bar gets extra padding only on devices with a notch or home indicator.30 Nov 2026 - Tip
tr:nth-child(even of :not([hidden])) {:nth-child(even of .visible) in CSS keeps zebra stripes right after filteringStriped rows stay alternating even when a filter hides some rows.30 Nov 2026 - Tip
text-box: trim-both cap alphabetic;Text-box: trim-both cap alphabetic in CSS removes the empty space above and below textButtons and headings get optically even padding because the font's built-in spacing is cut off.30 Nov 2026 - Tip
[popover] {Transition-behavior: allow-discrete in CSS animates a popover as it closesElements that switch to display: none can fade out instead of vanishing at once.30 Nov 2026 - Tip
::selection {::selection in CSS changes the color of text people highlightSelected text gets your own colors instead of the system blue.30 Nov 2026 - Tip
button:focus-visible {A transparent outline in CSS keeps focus visible in forced colors modeFocus styles made with box-shadow still show up for people who use a high contrast theme.30 Nov 2026 - Tip
.excerpt {-webkit-line-clamp in CSS cuts a teaser off after three linesExcerpts get the same height in a card grid, with an ellipsis at the end.30 Nov 2026 - Tip
animation-timeline: view();Animation-timeline: view() in CSS fades cards in as they scroll into viewA scroll-driven animation replaces the IntersectionObserver code for simple reveal effects.30 Nov 2026 - Tip
choose "Per function" or "Per block" > click the reload button in the panelThe Coverage panel shows how much of your CSS and scripts a page never usesFind the stylesheets and scripts that mostly ship dead weight to a page.30 Nov 2026 - Tip
overflow: hidden;Text-overflow: ellipsis in CSS needs three lines, and min-width: 0 in a flex rowLong single lines end in three dots instead of overflowing, even inside flexbox.30 Nov 2026 - Tip
position: sticky;When CSS position: sticky does not stick, check the ancestors for overflowThree common reasons a sticky header or sidebar scrolls away anyway, and how to fix them.30 Nov 2026 - Tip
.page {grid-template-areas in CSS draws your page layout as textNamed grid areas make a layout readable and easy to rearrange per screen size.30 Nov 2026 - Tip
@media (prefers-contrast: more) {@media (prefers-contrast: more) in CSS adds contrast for people who ask for itSoft grey text and faint borders get stronger when the system setting asks for more contrast.30 Nov 2026 - Tip
:root {Oklch() in CSS gives you color shades that look equally lightChanging only the lightness number gives a predictable set of shades for one hue.30 Nov 2026 - Tip
user-select: all;User-select: all in CSS selects a whole command with one clickOne click on a code snippet selects all of it, ready to copy.30 Nov 2026 - Tip
background: hsl(from var(--accent) h s calc(l - 10));Relative color syntax in CSS makes a see-through or darker version of any colorRelative color syntax derives transparent or darker variants from one CSS variable.30 Nov 2026 - Tip
.footnotes li:target,:target in CSS highlights the section a link just jumped toAfter clicking a footnote or heading link, the reader sees which part the link meant.30 Nov 2026 - Tip
details:open > summary {The CSS :open pseudo-class styles a details, dialog or select while it is openOne selector covers open details, dialogs and dropdown pickers.30 Nov 2026 - Tip
interpolate-size: allow-keywords;Interpolate-size: allow-keywords lets CSS animate to height: autoPanels can slide open to their natural height without measuring them in JavaScript.30 Nov 2026 - Tip
font-synthesis: none;Font-synthesis: none in CSS stops the browser from faking bold and italicText without a real bold or italic font file stays in the designed style instead of a smeared imitation.30 Nov 2026 - Tip
a[href$=".pdf" i]::after {CSS attribute selectors like a[href$=".pdf" i] label file links automaticallyLinks to PDFs or other sites get a marker without adding classes by hand.30 Nov 2026 - Tip
all: unset;All: unset in CSS strips a button bare, so add the focus ring backOne declaration removes every browser style from an element, including some you want to keep.30 Nov 2026 - Tip
isolation: isolate;Isolation: isolate in CSS keeps a negative z-index inside its cardA new stacking context stops decorative layers from slipping behind the whole page.30 Nov 2026 - Tip
.menu-button {CSS anchor positioning places a menu next to its button without JavaScriptA dropdown or tooltip sticks to the element that opens it, and flips when space runs out.30 Nov 2026 - Tip
font-display: swap;Font-display: swap in CSS shows text right away while a web font loadsVisitors can read the page in a fallback font instead of staring at invisible text.30 Nov 2026 - Tip
.field label {:placeholder-shown in CSS builds a floating label without JavaScriptThe label moves up out of the way once a field has a value or focus.30 Nov 2026 - Tip
.tag-row {mask-image with a gradient in CSS fades out the edge of a scroll rowA gradient mask shows there is more to scroll, on any background.30 Nov 2026 - Tip
width: min(100% - 2rem, 70rem);Width: min(100% – 2rem, 70rem) in CSS is a container in one lineA centered column that stays narrow on wide screens and keeps side space on phones.30 Nov 2026 - Tip
Elements > Styles > :hov > :hover:hov in the DevTools Styles pane forces the hover state so you can edit itKeeps an element in its hover state so you can edit the matching CSS.28 Nov 2026 - Tip
@media (prefers-reduced-motion: reduce) { .hero { animation: none; }}The Rendering tab can emulate prefers-reduced-motion without touching your OS settingsMakes Chrome behave as if reduced motion is switched on, to test your CSS.28 Nov 2026 - Tip
.field:focus-within {:focus-within highlights the whole group around a focused inputStyles a container while any element inside it has keyboard focus.28 Nov 2026 - Tip
textarea {Field-sizing: content makes textareas grow with their textLets textareas and text inputs resize to fit what is typed, without JavaScript.28 Nov 2026 - Tip
ul li::marker {::marker styles list bullets without extra markupColours or replaces the bullets and numbers of a list directly in CSS.28 Nov 2026 - Tip
@media (hover: hover) {@media (hover: hover) so hover styles don't stick on touch screensApplies hover effects only on devices that can really hover, not on touch screens.28 Nov 2026 - Tip
@scope (.card) to (.card-footer) {@scope limits styles to one part of the pageApplies CSS rules only inside one element, and optionally stops at an inner boundary.28 Nov 2026 - Tip
font-variant-numeric: tabular-nums;Font-variant-numeric: tabular-nums stops numbers from jumping aroundGives every digit the same width so timers and number columns stop shifting.27 Nov 2026 - Tip
hyphens: auto;Hyphens: auto breaks long Dutch words, as long as lang is setLets the browser hyphenate long words at the end of a line, using the page language.27 Nov 2026 - Tip
@property --fill {@property gives a CSS variable a type, so you can animate itRegisters a typed CSS variable so the browser can animate and validate it.27 Nov 2026 - Tip
@starting-style {@starting-style gives a new element a fade-in with only CSSAnimates an element from a starting value when it first appears on the page.27 Nov 2026 - Tip
text-wrap: balance;Text-wrap: balance keeps a heading from ending on one lonely word19 Nov 2026 - Tip
label:has(input:checked) { background: #e6f4ea; }The :has() css selector styles a parent based on its childrenSelects an element depending on what it contains, so a parent can be styled by its children.30 Jun 2026 - Tip
.hero { min-height: 100vh; /* fallback */ min-height: 100dvh; }Min-height: 100dvh in css tracks the real visible height on a phoneSizes an element to the visible screen height on mobile even while the browser toolbar moves.23 Mar 2026 - Tip
:root { color-scheme: light dark; }Light-dark() in css picks a color for the light or dark scheme in one valueChooses between a light and a dark color value without a separate media query block.22 Mar 2026 - Tip
.modal-body { overflow: auto; overscroll-behavior: contain; }Overscroll-behavior: contain stops css scroll chaining out of a modal or panelKeeps scrolling inside a panel when it reaches its end instead of moving the page behind it.22 Mar 2026 - Tip
.sidebar-list { overflow-y: auto; scrollbar-gutter: stable both-edges; }Scrollbar-gutter: stable stops css layout shift when a scrollbar appearsReserves space for the scrollbar so the layout does not shift when scrolling becomes possible.22 Mar 2026 - Tip
article p { text-wrap: pretty; }Text-wrap: pretty in css avoids a lonely last word in a paragraphAsks the browser to break paragraph lines so the final line does not hold a single orphan word.21 Mar 2026 - Tip
button:focus-visible, a:focus-visible {:focus-visible in css shows focus rings for keyboard users onlyShows the focus ring when the keyboard is used and skips it for ordinary mouse clicks.21 Mar 2026 - Tip
h2[id], h3[id] { scroll-margin-top: 5rem; }scroll-margin-top keeps anchor targets from hiding under a sticky css headerLeaves space above a link target so a fixed header does not cover it after scrolling.21 Mar 2026 - Tip
:root { accent-color: #0b6bcb; }accent-color in css recolors checkboxes, radios and sliders in one lineColors the active part of native checkboxes, radio buttons and sliders with one declaration.20 Mar 2026 - Tip
@media (prefers-reduced-motion: reduce) {prefers-reduced-motion in css switches off animation for people who ask for itDetects the reduced-motion setting of the operating system so animations can be switched off.20 Mar 2026 - Tip
@view-transition { navigation: auto; }@view-transition navigation: auto gives css page fades between your own pagesAnimates navigation between two same-origin pages with a cross-fade, using only a stylesheet rule.19 Mar 2026 - Tip
.card {Native css nesting with & removes the need for a preprocessorWrites child rules inside the parent rule in plain stylesheets, without Sass or a build step.19 Mar 2026 - Tip
@layer reset { a { color: inherit; } }@layer lets a css reset lose to your styles whatever the specificityGroups rules into ordered layers so the cascade order beats selector specificity.19 Mar 2026 - Tip
:root { --accent: #0b6bcb; }Color-mix() in css builds hover and tint colors from one variableBlends two colors so shades and tints can be derived from a single base color.17 Mar 2026 - Tip
.row { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; }scroll-snap-type makes a css carousel stop on each card without JavaScriptMakes a horizontally scrolling row stop neatly on each item as you swipe.16 Mar 2026 - Tip
.card { display: grid; grid-row: span 3; grid-template-rows: subgrid; }Grid-template-rows: subgrid lines up card titles and footers in css gridLets nested grid items share the tracks of the parent grid so content lines up across cards.15 Mar 2026 - Tip
h1 { font-size: clamp(1.75rem, 1.2rem + 2.5vw, 3rem); }Font-size: clamp() in css scales text between a minimum and a maximumSets a value that grows with the window but stays between a lower and an upper limit.12 Mar 2026 - Tip
.post :is(h2, h3, h4) { margin-block-start: 2rem; }:is() shortens long css selector lists, but it takes the highest specificityGroups several selectors into one short expression, with the specificity of the strongest entry.11 Mar 2026 - Tip
:where(.prose) a { color: #0645ad; text-decoration: underline; }:where() in css gives a selector zero specificity so it is easy to overrideWraps a selector so it adds no specificity, which keeps default styles easy to override.11 Mar 2026 - Tip
.card-wrap { container-type: inline-size; }Container-type: inline-size lets css components respond to their own widthLets a component change its layout based on the width of its parent instead of the browser window.11 Mar 2026
Web56
- Tip
console.assert(items.length > 0, 'cart is empty', items)Console.assert() only logs when your condition is falsePrints an error to the console only when the checked condition fails.2 Dec 2026 - Tip
document.designMode = "on"Document.designMode = "on" makes a whole page editableTurns the entire page into an editable document so you can type over any text.2 Dec 2026 - Tip
function save(item) {Console.trace() prints the call stack that led to a lineLogs a stack trace so you can see which code path called a function.2 Dec 2026 - Tip
obj?.propJavaScript ?. stops a chain at null or undefined instead of throwingReads a property or calls a function only when the value in front of it exists.2 Dec 2026 - Tip
const filePath = String.raw`C:\Development\profile\about.html`;JavaScript String.raw keeps backslashes as you typed themTurns a template literal into a string where backslashes stay as written.2 Dec 2026 - Tip
User agent > untick "Use browser default"Override the user agent in DevTools to see what another browser getsCheck what a server or script sends when the browser claims to be different.1 Dec 2026 - Tip
import { format } from "dates";An HTML import map lets your scripts import a library by a short nameWrite import statements without long URLs and without a build step.1 Dec 2026 - TipAn HTML noindex meta tag keeps one page out of search resultsAsk search engines not to list a thank you page or a draft.1 Dec 2026
- Tip
title="Example blog" href="/feed.xml">One HTML link tag lets feed readers discover your RSS feed by itselfPeople can paste your site address into a reader and it finds the feed.1 Dec 2026 - Tip
function setFilter(name, value) {History.replaceState keeps web page filters in the address barMake a filtered view shareable without adding a history entry per click.1 Dec 2026 - Tip
Save draftFormnovalidate on a Save draft button skips the required fields checkOne button submits without validation while the main button still checks everything.30 Nov 2026 - Tip
spellcheck="false"Spellcheck="false" and autocorrect="off" keep phones away from usernames and codesFields for usernames, commands or codes stop getting red lines and corrected words.30 Nov 2026 - Tip
const form = document.querySelector("#settings");Fieldset disabled switches off every field in a form at onceDisable a whole group of inputs while a form is being sent, with one attribute.30 Nov 2026 - Tip
q { quotes: auto; }The q element adds the right quotation marks for the page languageShort quotes get German, French or English quote marks automatically from the lang attribute.30 Nov 2026 - Tip
Total: € <output name="total" for="qty">9.00</output>The output element shows a calculated result that screen readers announceA form result updates in place and is read out without moving focus.30 Nov 2026 - Tip
accept="image/*" capture="environment">Capture="environment" on a file input opens the phone's back cameraAn upload button on a phone goes straight to the camera instead of the file picker.30 Nov 2026 - Tip
kbd kbd {Nest kbd elements to write keyboard shortcuts like Ctrl+Shift+PKeyboard shortcuts get proper markup and can be styled as keys.30 Nov 2026 - Tip
20 GB free. See Fig. 3 and page 12.</p>A non-breaking space keeps 10 GB and other number and unit pairs on one lineValues and their units never end up split across two lines.30 Nov 2026 - TipThe form attribute connects a button or input that sits outside the formA save button in a sticky footer can still submit a form elsewhere in the page.30 Nov 2026
- Tip
srcset="photo-400.jpg 400w,srcset with w descriptors and sizes lets the browser pick the right image filePhones download a small file and large screens a sharp one, from one img tag.30 Nov 2026 - TipClosedby="any" lets people close a dialog by clicking outside itA modal closes on a backdrop click or Escape without a custom click handler.30 Nov 2026
- TipCommandfor and command on a button open a dialog without a click handlerButtons can open modals and toggle popovers declaratively, with no JavaScript.30 Nov 2026
- Tip
alt="Boats in the harbour at sunset">Width and height on every img stop the page from jumping while images loadThe browser reserves the right space for an image before the file arrives.30 Nov 2026 - Tip
href="/fonts/source-serif-regular.woff2"Rel="preload" for a font only works with the crossorigin attributeA preloaded font arrives before the stylesheet asks for it, instead of being fetched twice.30 Nov 2026 - TipOl reversed counts a list down, for a top 10 that ends at number oneA countdown list without typing the numbers by hand.30 Nov 2026
- TipDefer and async on a script tag behave differently, and order is the reasonPick defer for scripts that depend on each other and async for independent ones.30 Nov 2026
- Tip
const safe = Object.fromEntries(Object.fromEntries() turns key-value pairs back into an objectBuilds a plain object from an array or Map of key-value pairs, handy after filtering entries.28 Nov 2026 - Tip
const data = await Promise.any([Promise.any() takes the first promise that succeeds and ignores failuresResolves with the first promise that succeeds and only fails when all of them fail.28 Nov 2026 - Tip
const arr = [1, 2, 3, 4, 5];Array.with(index, value) replaces one item without changing the originalReturns a copy of an array with one index replaced, so the original stays unchanged.28 Nov 2026 - Tip
const controller = new AbortController();Pass an AbortController signal to addEventListener to remove listeners in one callRemoves several event listeners at once by aborting a shared AbortController signal.28 Nov 2026 - Tip
const foo = Object.create(null);Object.hasOwn(obj, key) replaces obj.hasOwnProperty(key)Checks whether an object has its own key, even for objects without a prototype.28 Nov 2026 - Tip
options.duration ??= 100;??= sets a default only when a value is null or undefinedAssigns a default value only when the variable is null or undefined, keeping 0 and empty strings.28 Nov 2026 - Tip
"192.168.1.10".replaceAll(".", "-");ReplaceAll() replaces every match without a regexReplaces every occurrence of a string in one call, with no regex escaping.28 Nov 2026 - Tip
test("async tests work too", async () => {Node --test runs your tests without installing a test frameworkRuns tests with the test runner built into Node, no extra package needed.28 Nov 2026 - Tip
npm explain globnpm explain shows why a package is in node_modulesShows the chain of dependencies that caused a package to be installed.28 Nov 2026 - Tip
console.time("fetchData");Console.time() and timeLog() measure how long a piece of code takesPrints how long code took between two labelled console calls.28 Nov 2026 - Tip
const a = [5, 4, -3, 20, 17, -33, -4, 18];FlatMap() maps and filters in one passMaps an array and drops or adds items in one pass by returning arrays.28 Nov 2026 - Tip
// for example "28 november 2026 om 14:05"Intl.DateTimeFormat with dateStyle gives Dutch dates without a libraryFormats dates and times in Dutch or any locale with the built-in Intl object.28 Nov 2026 - Tip
const re = /(?<year>\d{4})-(?<month>\d{2})/g;MatchAll() with named groups pulls every match out of a stringReturns every regex match including capture groups, readable with named groups.28 Nov 2026 - Tip
async function* pages() {Array.fromAsync() collects an async iterable into an arrayWaits for an async iterable or list of promises and returns a normal array.28 Nov 2026 - TipEnterkeyhint changes the label of the Enter key on a phone keyboardSets the label of the Enter key on mobile keyboards, like search, next or send.28 Nov 2026
- TipDatalist adds autocomplete suggestions to an input without JavaScriptOffers suggestions under a text input while still allowing any typed value.28 Nov 2026
- TipMeta theme-color tints the browser bar on a phone, with a light and dark versionColors the browser toolbar to match your site, with separate light and dark values.28 Nov 2026
- TipHidden="until-found" hides content that Ctrl+F can still findHides content but lets browser search and #links still find and reveal it.28 Nov 2026
- TipThe download attribute on a link suggests the filename, with a same-origin catchMakes a link save the file with a name you suggest, only for same-origin URLs.28 Nov 2026
- Tip<time datetime> gives a date a machine-readable versionGives a visible date a precise machine-readable value for browsers and scripts.28 Nov 2026
- TipThe <search> element replaces role="search" on a formMarks the search or filter part of a page as a landmark without an ARIA role.28 Nov 2026
- Tip
width="800" height="600" decoding="async">Decoding="async" on an image lets the page paint before the image is decodedHints that an image can be decoded after the rest of the page has painted.28 Nov 2026 - Tip
const cities = ["Leiden", "Delft", "Utrecht"];Intl.ListFormat joins lists the way the language doesJoins an array into a readable sentence list using the rules of a language.28 Nov 2026 - Tip
// in the tab where the user clicks "log out"BroadcastChannel lets your open tabs talk to each otherSends a message from one browser tab to all other open tabs of the same site.27 Nov 2026 - Tip
throw new Error("Could not load settings", { cause: err });New Error(message, { cause }) keeps the original error when you rethrowKeeps the original error attached when you catch it and throw a clearer one.27 Nov 2026 - Tip
const data = JSON.stringify({ path: location.pathname, seconds: timeOnPage });Navigator.sendBeacon() sends a last bit of data when a visitor leavesSends a small POST request reliably when a visitor leaves or hides the page.27 Nov 2026 - Tip
const { promise, resolve, reject } = Promise.withResolvers();Promise.withResolvers() gives you resolve and reject outside the promiseCreates a promise and hands you its resolve and reject functions to call later.27 Nov 2026 - Tip
try_files $uri $uri/ /index.html;Nginx try_files serves index.html for deep links in a single-page appFalls back to one HTML file when the requested path does not exist on disk.24 Nov 2026 - TipThe details element gives you an accordion without JavaScriptMakes a click-to-expand block in plain HTML, with no JavaScript.19 Nov 2026
- Tip
const copy = structuredClone(original);StructuredClone makes a real deep copy of an objectMakes a full deep copy of a JavaScript object, including dates, maps and sets.19 Nov 2026
Network16
- Tip
ab -n 200 -c 10 https://example.com/ab -n -c gives a quick load test of a web pageSend many concurrent requests to a URL to see how the server copes3 Dec 2026 - Tip
mkcert -installmkcert makes a local certificate your browser trusts without warningsCreates a local CA and trusted certificates for localhost and test names in two commands.3 Dec 2026 - Tip
Strict-Transport-Security: max-age=0Strict-Transport-Security max-age=0 is the off switch for HSTSExplains how a site turns HSTS off again and why that only works over HTTPS.3 Dec 2026 - Tip
view-source:https://www.mozilla.org/#line100Link to a specific line in Firefox's view-sourceOpens a page's source at a given line using a #line anchor.2 Dec 2026 - Tip
Network panel > Disable cacheDisable cache in DevTools makes every reload fetch files from the serverStop old CSS and scripts from confusing you while you work on a site.1 Dec 2026 - Tip
Cache-Control: no-cacheCache-Control no-cache still stores a response, only no-store forbids itPick the right header for fresh pages versus pages that must not be saved.1 Dec 2026 - Tip
Network panel > tick "Preserve log" in the toolbarPreserve log in the Network panel keeps requests after a redirect or form submitSee the request that caused a redirect instead of an empty list after navigation.30 Nov 2026 - Tip
https://example.com/docs/setup#:~:text=back%20up%20the%20database#:~:text= in a link scrolls to and highlights one sentence on any pageLink to the exact sentence you mean, even on a page without anchors.30 Nov 2026 - Tip
map $request_uri $new_uri {One nginx map handles a long list of old URLs to redirectKeeps hundreds of old-to-new redirects in one lookup table instead of many location blocks.30 Nov 2026 - Tip
Network panel > right-click the request > Copy > Copy as fetchCopy as fetch in the Network panel replays a request from the consoleTurn any request a page made into code you can tweak and run again.30 Nov 2026 - Tip
https://example.com<wbr>/some<wbr>/very<wbr>/long<wbr>/path<wbr>/to<wbr>/a-file.pdf<wbr> marks where a long URL may break instead of overflowingMarks places where a long URL or path may wrap, without adding a hyphen.28 Nov 2026 - TipLocal Overrides in DevTools let you test a response header without the backendEdits an HTTP response header in Chrome so you can test a fix before changing the server.28 Nov 2026
- Tip
larger-than:500kLarger-than: in the Network filter box shows only the heavy requestsFilters the Network panel down to requests bigger than a size you choose.28 Nov 2026 - Tip
google-chrome --headless --dump-dom https://example.comChrome --headless --dump-dom prints the HTML after the JavaScript has runPrints the page's HTML as it looks after JavaScript has run.28 Nov 2026 - Tip
Ctrl+Shift+M > No throttling > Good 3GFirefox Responsive Design Mode can throttle the network, from GPRS to Wi-FiSlows the network in Firefox's responsive view to test a page on a weak connection.28 Nov 2026 - Tip
location /i/ {Nginx root adds the location to the path, alias replaces itExplains which file path nginx builds with root and with alias, so static files stop returning 404.27 Nov 2026
Other tips9
- Tip
a2query -m rewritea2query -m rewrite tells you if an Apache module is switched onCheck whether an Apache module is enabled, and get a clean exit code for scripts.3 Dec 2026 - TipClear site data for one site from Chrome DevToolsWipes storage and cache for the current site only, leaving other sites alone.2 Dec 2026
- Tip
Safari > Settings > Advanced >Switch on the Develop menu in Safari with one checkboxGet the web developer tools that Safari hides by default.1 Dec 2026 - Tip
Accessibility tab > SimulateFirefox's Accessibility panel can simulate color blindness on your pageSee your design the way someone with colour vision deficiency might.1 Dec 2026 - Tip
type "sensors" > Show Sensors > GeolocationThe DevTools Sensors panel fakes your location for testingTest location based features as if you were somewhere else.1 Dec 2026 - Tip
right-click the node > Capture node screenshotCapture node screenshot in DevTools saves just one element as an imageGet a tidy picture of a single card or table without cropping by hand.1 Dec 2026 - Tip
// DevTools pauses on the first line of the functionDebug(functionName) in the console pauses the next time that function runsSet a breakpoint on a function without finding it in the Sources panel.30 Nov 2026 - Tip
Toggle device toolbar > More options > Capture a full size screenshotCapture a full size screenshot in Chrome's device toolbar saves the whole pageSaves a screenshot of the entire page at the width you chose in device mode.28 Nov 2026 - TipCtrl+Shift+P in Chrome DevTools opens a command menuOpens a searchable command menu in Chrome DevTools, for example for full-page screenshots.19 Nov 2026
Media2
- Tip
width="640" height="360" poster="demo.jpg">HTML video needs muted and playsinline to autoplay nicely on phonesMake a short silent clip start by itself without taking over the screen.1 Dec 2026 - Tip
.video {aspect-ratio keeps a box at 16:9 without padding tricksGives an element a fixed width-to-height ratio with one CSS line.19 Nov 2026
Security1
Storage1
Docker1
Posts1
Nothing matches.