---
title: "What are Web Components?"
term: "Web Components"
description: "Web Components are a set of web platform standards that let developers create reusable, encapsulated custom HTML elements that work in any modern browser without a framework."
url: "https://glossary.io/web-components/"
published: "2026-11-22T20:47:15.002Z"
updated: "2026-11-22T20:47:15.002Z"
topics:
  - "Web development"
wikidata: "https://www.wikidata.org/wiki/Q18217380"
---

# What are Web Components?

**Definition:** Web Components are a set of web platform standards that let developers create reusable, encapsulated custom HTML elements that work in any modern browser without a framework.

Web Components combine three main technologies. Custom elements let developers define new HTML tags with their own names and behavior. [Shadow DOM](https://glossary.io/shadow-dom/) keeps an element's internal markup and styles separate from the rest of the page, so styles don't leak in or out. HTML templates hold markup that isn't rendered until JavaScript uses it.

Because they are built into browsers, Web Components work with any [JavaScript framework](https://glossary.io/javascript-framework/) or with none, which makes them a good fit for design systems and widgets shared across sites built with different tools. Libraries such as Lit, which grew out of [lit-html](https://glossary.io/lit-html/), make them easier to write. Newer additions, including declarative shadow DOM for server rendering and form-associated custom elements, have closed many earlier gaps with framework components.

## Web Components resources

- [Official website](https://www.webcomponents.org/)
- [Web Components on Wikipedia](https://en.wikipedia.org/wiki/Web_Components)
- [5 Modern Web Guidance updates that matter most for PWAs](https://coywolf.com/notes/5-modern-web-guidance-updates-that-matter-most-for-pwa-developers/)

## Related terms

- [lit-html](https://glossary.io/lit-html/)
- [Shadow DOM](https://glossary.io/shadow-dom/)
- [CSS container queries](https://glossary.io/css-container-queries/)
- [JavaScript framework](https://glossary.io/javascript-framework/)

**Topic:** [Web development](https://glossary.io/topics/web-development/)

## Cite this definition

- APA: What are Web Components? (2026, November 22). Glossary. https://glossary.io/web-components/
- MLA: “What Are Web Components?” Glossary, Coywolf, 22 Nov. 2026, glossary.io/web-components/.
- Chicago: “What Are Web Components?” Glossary. Coywolf. November 22, 2026. https://glossary.io/web-components/.

Published November 22, 2026.
