URL: https://developer.mozilla.org/en-US/
Title: MDN Web Docs

Skip to main content
Skip to search
MDN
HTML
HTML: Markup language
HTML reference
Elements
Global attributes
Attributes
See all…
HTML guides
Responsive images
HTML cheatsheet
Date & time formats
See all…
Markup languages
SVG
MathML
XML
CSS
CSS: Styling language
CSS reference
Properties
Selectors
At-rules
Values
See all…
CSS guides
Box model
Animations
Flexbox
Colors
See all…
Layout cookbook
Column layouts
Centering an element
Card component
See all…
JavaScript
JS
JavaScript: Scripting language
JS reference
Standard built-in objects
Expressions & operators
Statements & declarations
Functions
See all…
JS guides
Control flow & error handing
Loops and iteration
Working with objects
Using classes
See all…
Web APIs
Web APIs: Programming interfaces
Web API reference
File system API
Fetch API
Geolocation API
HTML DOM API
Push API
Service worker API
See all…
Web API guides
Using the Web animation API
Using the Fetch API
Working with the History API
Using the Web speech API
Using web workers
All
All web technology
Technologies
Accessibility
HTTP
URI
Web extensions
WebAssembly
WebDriver
See all…
Topics
Media
Performance
Privacy
Security
Progressive web apps
Learn
Learn web development
Frontend developer course
Getting started modules
Core modules
MDN Curriculum
Check out the video course from Scrimba, our partner
Learn HTML
Structuring content with HTML module
Learn CSS
CSS styling basics module
CSS layout module
Learn JavaScript
Dynamic scripting with JavaScript module
Tools
Discover our tools
Playground
HTTP Observatory
Border-image generator
Border-radius generator
Box-shadow generator
Color format converter
Color mixer
Shape generator
About
Get to know MDN better
About MDN
Advertise with us
Community
MDN on GitHub
Blog
MDN
Resources for Developers,
by Developers
Documenting
CSS
,
HTML
, and
JavaScript
, since 2005.
Mandala
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{
{
{
{
}
}
}
}
{
{
{
{
}
}
}
}
{
{
{
{
}
}
}
}
{
{
{
{
}
}
}
}
{
{
{
{
}
}
}
}
{
{
{
{
}
}
}
}
../../ ../../
../../ ../../
../../ ../../
../../
<>
</>
<>
</>
<>
</>
<>
</>
<>
</>
<>
</>
<>
</>
<>
</>
<>
</>
<>
</>
<>
</>
<>
</>
<>
</>
<>
</>
<>
</>
<>
</>
Featured articles
Blog
Celebrating 20 years of MDN
MDN turns 20! Let's look at how we started, how MDN became the most trusted resource for web developers, the impact it's had on the open web, and yes, there's cake, too.
Web APIs
Navigation API
The Navigation API provides the ability to initiate, intercept, and manage browser navigation actions. It can also examine an application's history entries. This is a successor to previous web platform features such as the History API and window.location, which solves their shortcomings and is specifically aimed at the needs of single-page applications (SPAs).
Web APIs
Trusted Types API
The Trusted Types API gives web developers a way to ensure that input has been passed through a user-specified transformation function before being passed to an API that might execute that input. This can help to protect against client-side cross-site scripting (XSS) attacks. Most commonly the transformation function sanitizes the input.
CSS
Using CSS anchor positioning
The CSS anchor positioning module defines features that allow you to tether elements together. Elements can be defined as anchor elements and anchor-positioned elements. Anchor-positioned elements can be bound to anchor elements. The anchor-positioned elements can then have their size and position set relative to the size and location of the anchor elements to which they are bound.
Latest news
developer.mozilla.org
Introducing the MDN MCP server
2 days ago
MDN's MCP server brings MDN's documentation and browser compatibility data directly into your editor or IDE, giving your LLM or coding agent access to accurate, up-to-date web platform information.
developer.mozilla.org
Under the hood of MDN's new frontend
2 months ago
You may have spotted that MDN has a new frontend. There's plenty happening under the surface, so let's unpack the technologies we chose, the architectural decisions we made, and why we did a rebuild at all.
developer.mozilla.org
Image formats: Codecs and compression tools
7 months ago
Image compression involves countless trade-offs between quality, size, and speed. In this final part of the series, we experiment with codecs, metrics, and tools to find practical ways to balance efficiency and visual fidelity.
developer.mozilla.org
A beginner-friendly guide to view transitions in CSS
8 months ago
Learn how to bring smooth, animated navigation to multi-page apps with view transitions. With just one line of CSS, you can enable seamless transitions between pages.
Recent contributions
mdn/content
14 hours ago
Make it clear we're supporting the whole notification actions feature
mdn/content
13 hours ago
Update support notices for prefers-reduced-data
mdn/content
11 hours ago
added release note for base-select value for appearance property
mdn/content
11 hours ago
added reelease notes for timeline-range-name in @keyframes
mdn/content
11 hours ago
Finalize release notes for Firefox 152
mdn/translated-content
5 hours ago
fix(es): complete SubtleCrypto encrypt() and generateKey() Spanish translations
mdn/translated-content
5 hours ago
[es] Corrige el título y actualiza los metadatos de la plantilla de p…
mdn/translated-content
3 hours ago
chore(fr): update of `Learn_web_development/Core/Styling_basics/Debugging_CSS`
mdn/translated-content
3 hours ago
chore(fr): translation of `Learn_web_development/Core/Styling_basics/Home_color_scheme_search`
mdn/translated-content
3 hours ago
chore(fr): sync latest ff152 changes in notes
Contributor Spotlight
Shrinivass Arunachalam Balasubramanian
MDN closely follows W3C standards which helps me keep up with important topics. It's a complete package as it caters to everything; complex APIs, new browser functionalities, and best practices. MDN serves as a truly valuable resource and continues to assist me in my everyday development.
Get involved
MDN
Your blueprint for a better internet.
MDN
About
Blog
Mozilla careers
Advertise with us
MDN Plus
Product help
Contribute
MDN Community
Community resources
Writing guidelines
MDN Discord
MDN on GitHub
Developers
Web technologies
Learn web development
Guides
Tutorials
Glossary
Hacks blog
Mozilla
Website Privacy Notice
Telemetry Settings
Legal
Community Participation Guidelines
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under
a Creative Commons license
.
