What are Web Components?
DefinitionWeb 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 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 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, 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
Topic: 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/.
- HTML link
<a href="https://glossary.io/web-components/">What are Web Components?</a>
Published