The official MDN Web Docs account. We deliver the best web docs around.

Joined March 2013
496 Photos and videos
Pinned Tweet
MDN is 20 years old! 🥳 🙏 A huge thank you to... The devs who read and trust MDN The contributors who improve it Everyone working on the web platform who shares our mission. Here's how we celebrated with the web.dev team! 🧁 developer.mozilla.org/en-US/…
8
66
301
21,416
MDN Web Docs retweeted
The Web Serial API landed in Firefox 151, allowing you to connect directly to microcontrollers, dev boards, 3D printers, power meters, and other serial-connected hardware from the web. Here's how it works:
3
12
85
5,701
Ever wish HTTP status codes were easier to remember? 🖼️ Check out this MDN cheatsheet that pairs each status code with an emoji to help you visualize what each one means, from 200 OK ✅ to 418 I’m a teapot 🫖 Check it out 👇
2
10
72
2,493
🦊 Firefox 150: web extensions can now use the Web Authentication API. Extensions can create and retrieve WebAuthn credentials for any domain covered by their host permissions. Read Now 👇 developer.mozilla.org/en-US/…
20
2,145
🦊 New in Firefox 150: the revert-rule CSS keyword. Make a property behave as if the current rule didn't exist, letting a value from another matching rule take effect instead. Read Now 👇 developer.mozilla.org/en-US/…
2
32
2,900
🦊 Firefox 150: light-dark() now accepts image values — not just colors. Use it with images and gradients to adapt visuals based on color scheme. background: light-dark(url(light.png), url(dark.png)); Read Now 👇 developer.mozilla.org/en-US/…
7
42
2,297
🦊 Firefox 150 ships ariaNotify() on Document and Element. Queue text to be announced by a screen reader — a more ergonomic and reliable alternative to ARIA live regions. Read Now 👇 developer.mozilla.org/en-US/…
5
33
2,125
🦊 Firefox 150: color-mix() now accepts more than two colors at once. Mix any number of colors in a single declaration — no more nesting multiple calls. Read Now 👇 developer.mozilla.org/en-US/…
4
43
2,307
🦊 Firefox 150: <img sizes="auto"> is now supported. Lazy-loaded images use their calculated layout size to select from srcset — no more duplicating media queries in HTML. Read Now 👇 developer.mozilla.org/en-US/…
1
5
50
2,360
Have you heard of CSS Subgrid? 🤔 A grid item can now pass its parent's grid lines to children, so nested elements align perfectly with the outer layout. No more hacky workarounds for aligned nested grids. Learn more 👇 developer.mozilla.org/en-US/…
1
15
117
3,853
Firefox 150 ships 7 media pseudo-classes: :buffering, :muted, :paused, :playing, :seeking, :stalled, :volume-locked. Style <audio> and <video> elements based on their playback state. Read Now 👇 developer.mozilla.org/en-US/…
9
51
2,402
🆕 The URL Pattern API is Newly Available! Use it to match and extract parts of URLs, no need to reinvent routing logic. Supports literals, wildcards, named groups, and even regex constraints. Learn how it works 👇 developer.mozilla.org/en-US/…
3
16
149
5,980
Wait for all promises, even the failing ones 🔄 `Promise.allSettled()` waits for every promise to finish, success or failure. ⋅ Returns { status: 'fulfilled', value } or { status: 'rejected', reason } ⋅ Perfect for batch operations Learn more 👇 developer.mozilla.org/en-US/…
1
11
129
4,895
✨ :only-child now matches elements with no parent! The :only-child selector has been updated — it can now match elements that have no parent at all, not just sole children. A subtle but useful spec alignment across all major browsers. Learn more 👇 developer.mozilla.org/en-US/…
2
3
41
2,671
✨ :only-child now matches elements with no parent! The :only-child selector has been updated — it can now match elements that have no parent at all, not just sole children. A subtle but useful spec alignment across all major browsers. Learn more 👇 developer.mozilla.org/en-US/…
1
4
75
3,891
Build smooth scroll experiences with CSS scroll snap 📜 Snap scrollable containers to specific positions — carousels, galleries, and paginated views with zero JavaScript. Learn more 👇 developer.mozilla.org/en-US/…
10
78
3,727
📬 Check own properties safely with Object.hasOwn() A safer alternative to hasOwnProperty, works even on objects with a null prototype. Baseline since 2022 ✅ Learn more 👇 developer.mozilla.org/en-US/…
1
8
120
4,339
Create frosted glass effects in CSS 🪟 backdrop-filter applies visual effects to the content behind an element - blur, brightness, contrast, and more. backdrop-filter: blur(10px) brightness(0.9); No JavaScript. No canvas tricks. Learn more 👇 developer.mozilla.org/en-US/…
1
13
183
8,710
The CSS next-sibling combinator ( ) selects an element only when it immediately follows another, same parent, no elements between them. img p { font-weight: bold; } Learn more 👇 developer.mozilla.org/en-US/…
12
117
4,344
🆕 Document.caretPositionFromPoint() is Newly Available! Give it an (x, y) coordinate and get back the exact DOM node and character offset. Perfect for click-to-edit interfaces. Check it out 👇 developer.mozilla.org/en-US/…
27
217
8,086
🆕 The Popover API is Baseline, no JavaScript needed Tooltips, dropdowns, and menus with just HTML attributes. ⋅ popover attribute on any element ⋅ popovertarget to wire the trigger ⋅ Accessible by default, no ARIA hacks Learn more 👇 developer.mozilla.org/en-US/…
3
57
373
16,561