HTML
CSS
JavaScript
Web APIs
All
Learn
Tools
About
Blog
HTML: Markup language
HTML References
Elements
Global attributes
Attributes
See all…
Markup languages
SVG
MathML
XML
HTML Guides
Responsive images
Video & audio content [Learn]
Date & time formats
See all…
CSS: Styling language
References
Modules [404]
Properties [404]
Selectors
At-rules
Functions [404]
See all…
Guides
Box model [Learn]
Animations
Flexbox [Learn]
Colors
See all…
Tools
Color picker
Box-shadow generator
Border-image generator
Border-radius generator
JavaScript. Scripting language
References
Built-in objects
Expressions & operators
Statements & declarations
Functions
See all…
Guides
Complete beginners [Learn]
Intermediate [Learn]
Advanced [Learn]
See all…
Web API. Programming interfaces
References
Fetch API
Canvas API
Geolocation API
View Transition API
See all…
Guides
Using the web audio API
Manipulating video with canvas
Using the web animation API
See all… [TODO]
All web technology
References
Accessibility
HTTP
Web extensions
WebAssembly
WebDriver
See all…
Topics
Performance
Privacy
Security
Progressive web apps
See all… [TODO]
Learn web development
Frontend developer course
Getting started
Common questions
Curriculum
Learn HTML
Introduction to HTML
Getting started with HTML
Learn CSS
What is CSS
Getting started with CSS
Learn JavaScript
How to use data attributes
How to use JS in a webpage
Discover MDN's unique tools
Playground
HTTP Observatory
AI Help
Browser release dashboard
About: Get to know MDN better
About MDN
Community
Advertise with us
Theme
OS default
Light
Dark
In this article