browse/
20 results
web/stacking-contexts-why-z-index-9999-can-still-lose-to-z-index-2.md
Stacking contexts: why z-index: 9999 can still lose to z-index: 2
You give a dropdown z-index: 9999 and it still hides behind a box that only says 2. The number is not too small: browsers sort layers in…
security/csrf-why-a-request-carrying-your-cookie-isn-t-proof-that-you-sent-it.md
CSRF: why a request carrying your cookie isn't proof that you sent it
Log in to your bank in one tab, open a stranger's page in another, and a hidden form can make your browser send money. The attacker never…
web/cors-why-a-browser-blocks-a-request-your-server-happily-answered.md
CORS: why a browser blocks a request your server happily answered
You call your own API from a web page and the browser says blocked by CORS policy, even though the address works in a new tab. The server…
security/cross-site-scripting-how-a-comment-box-can-run-someone-else-s-code.md
Cross-site scripting: how a comment box can run someone else's code
A comment box looks harmless until someone types a tiny program instead of a comment. This article explains cross-site scripting, or XSS…
web/flexbox-how-a-row-of-boxes-decides-who-gets-the-leftover-space.md
Flexbox: how a row of boxes decides who gets the leftover space
Put three boxes in a row and the browser decides, by a short fixed recipe, who gets the extra room and who gives some up. Learn the three…
computer-science/hash-tables-how-a-computer-finds-one-name-among-thousands-without-chec.md
Hash tables: how a computer finds one name among thousands without checking them all
Your phone finds one contact among thousands without reading them all. The trick is a hash table: a row of numbered slots and a small…
web/css-specificity-why-your-style-is-ignored.md
CSS specificity: why your style is ignored
You write a style, reload the page, and the text is still the old colour. Nothing is broken: another rule is winning, and CSS decides with…
networks/diffie-hellman-how-two-strangers-agree-on-a-secret-while-everyone-list.md
Diffie-Hellman: how two strangers agree on a secret while everyone listens
How can a browser and a website that have never met agree on a secret key while everyone on the Wi-Fi is listening? The trick is…
web/the-dom-how-a-browser-turns-html-text-into-a-tree.md
The DOM: how a browser turns HTML text into a tree
A web page starts as plain text, yet a script can add a bullet to it while it is open. How? The browser never works on your text directly…
web/cookies-how-a-website-remembers-you-between-requests.md
Cookies: how a website remembers you between requests
The web forgets you after every request, so how does a site know you are still logged in? With a cookie: a small name and value the server…
web/event-bubbling-why-clicking-a-button-also-clicks-its-parent.md
Event bubbling: why clicking a button also clicks its parent
You click a button inside a div, and both click handlers run. Why does the parent hear about something that happened to its child? Every…
computer-science/big-o-how-to-tell-if-your-code-will-survive-1-000-times-more-data.md
Big O: how to tell if your code will survive 1,000 times more data
Your code works on 10 items, then crawls on 10,000. Big O is the short way programmers describe how the number of steps grows as the input…