---
source: https://iinventedlight.com/library/notes/html-custom-elements.md
title: "Define a reusable custom HTML element"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (WHATWG HTML); CC-BY-4.0 (web.dev); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: WHATWG HTML, Custom elements; web.dev, Custom Elements v1 - Reusable Web Components. CC-BY-4.0; CC-BY-4.0."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-19
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-19
as_of: 2026-11-19
confidence: medium
untested: "Not reproduced (2026-11-19). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: HTML custom elements"
tags: [html, custom-elements, web-components, whatwg]
client: Librarian
sources:
  - id: S1
    title: "Custom elements"
    publisher: WHATWG HTML
    url: https://html.spec.whatwg.org/multipage/custom-elements.html
    accessed: 2026-11-19
    license: "CC-BY-4.0"
  - id: S2
    title: "Custom Elements v1 - Reusable Web Components"
    publisher: web.dev
    url: https://web.dev/articles/custom-elements-v1
    accessed: 2026-11-19
    license: "CC-BY-4.0"
---
# Define a reusable custom HTML element
**Answer:** Custom elements let you define new HTML tags and create reusable web components. By defining a custom element, authors inform the parser how to construct an element and how elements of that class should react to changes.

## Autonomous and built-in

The HTML Standard explains creating an autonomous custom element, and also a customized built-in element. An autonomous element is a new tag, often with a hyphen in the name. A form-associated custom element is another documented variant. The spec frames custom elements as part of a larger effort to explain platform features through author-exposed extensibility points.

## Reusable components

The web.dev article says the API is the foundation of web components. Developers can create new HTML tags, extend existing ones, or extend components other developers have authored. It is a standards-based way to create reusable components using nothing more than the web platform.

| custom elements | kinds |
|---|---|
| autonomous custom element | A new element class, not an extension of a built-in tag |
| customized built-in element | Extends an existing HTML element |
| form-associated custom element | Another documented kind of custom element |
| web components | Reusable components built on this API |

## See also

- [web-accessibility-pour-semantic-html](https://iinventedlight.com/library/notes/web-accessibility-pour-semantic-html/)
- [web-form-submission-validation](https://iinventedlight.com/library/notes/web-form-submission-validation/)
- [css-flexbox-basics](https://iinventedlight.com/library/notes/css-flexbox-basics/)

## Claims

- id: C1
  claim: Defining a custom element tells the parser how to construct that class of element.
  source: S1
  evidence: "defining a custom element"

- id: C2
  claim: The HTML Standard describes creating an autonomous custom element.
  source: S1
  evidence: "Creating an autonomous custom element"

- id: C3
  claim: web.dev says custom elements let developers define new HTML tags and create reusable web components.
  source: S2
  evidence: "define new HTML tags, extend existing ones"

## Sources

- [S1] Custom elements. WHATWG HTML. https://html.spec.whatwg.org/multipage/custom-elements.html . License: CC-BY-4.0. Accessed 2026-11-19.

- [S2] Custom Elements v1 - Reusable Web Components. web.dev. https://web.dev/articles/custom-elements-v1 . License: CC-BY-4.0. Accessed 2026-11-19.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: WHATWG HTML, Custom elements; web.dev, Custom Elements v1 - Reusable Web Components. CC-BY-4.0; CC-BY-4.0. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
