Digital tools

MDN Web Docs

Reference documentation for HTML, CSS, JavaScript, web APIs and development practices.

Visit the official website ↗
Archived homepage screenshot of MDN Web Docs
Archived preview

Screenshot captured on an unrecorded date. The current website may have changed.

A concrete use case

Understand a Web feature

Read an HTML, CSS or JavaScript reference with examples.

Check first: Check the feature and support in target browsers.

A computer, keyboard, phone and backup drive
AI-generated contextual illustration · Fictional scene, not a photograph of this organization’s premises or services.
Our worked method

Check a page action using the keyboard

Native button
Examine the intended action element.
ARIA role
Distinguish semantics from interaction.
  1. Identify the element triggering the action.
  2. Check its name and keyboard access.
  3. Test relevant activation with Enter and Space.

Fictional example: a prototype colours a block like a button, but only clicking works. The developer examines the element and interactions before adopting the component.

Your useful record: Element, accessible name, tested keys and observed result.

An ARIA role does not establish complete component accessibility.

Choose another worked method

Editorial method informed by MDN — ARIA button role. Documentation consulted on . Examples are fictional exercises, not results from a live service test.

Documented resource details

Connect an API to actual browser support

MDN organises documentation for web technologies, including HTML, CSS, JavaScript and APIs. Before applying an example, read prerequisites and compatibility data, then test the browsers and conditions your page targets.

Documentation
Syntax, parameters, examples and technology references.
Compatibility
Read versions, restrictions and accompanying notes.
Verification
Test keyboard use, mobile layout and target browsers on your page.
Document type
MDN publishes references, guides, glossary entries and tutorials; a documentation page is not the specification itself.
Read cache directives
no-cache permits storage with revalidation before reuse; no-store requests that the response not be stored. The directives are not interchangeable.
Diagnosis
Compare response headers and reload behaviour before attributing stale content to the browser or server.
Baseline scope
Baseline summarises feature availability across a defined set of browsers. “Newly available” does not imply support in every older release or embedded web view.
Source: MDN — Baseline compatibility · consulted on
Compatibility and usability
The badge does not replace accessibility, performance or security tests. Record the browser version and test assistive technologies relevant to the intended audience.
Source: MDN — Baseline compatibility · consulted on
Role and behaviour
role="button" conveys semantics without automatically providing keyboard behaviour.
Source: MDN — ARIA button role · consulted on
Native button
MDN generally recommends appropriate button or input elements.
Source: MDN — ARIA button role · consulted on
Is an example working in my browser sufficient?

No. Check target browsers, security conditions and alternatives before publishing.

Does a documented feature work in every browser?

No. MDN also documents technologies progressing through standardisation; read feature compatibility data and test the browser versions you target.

Initial profile documentation

Initial profile documentation consulted on . Added details carry their own source and consultation date above.

Editorial selection, without website certification. Read our method.