Keyword Tag Component

Web Components

“Web Components” is a series of specifications for extending the default set of HTML elements. These custom elements can be used by any HTML page or web application. Web components are supported by all major browsers, and custom elements work quite well with the most popular front-end frameworks.

Creating Custom Elements

Custom elements can be created simply by extending the built-in HTMLElement class. Then, the new element can be registered in the browser’s Custom Element Registry with a new tag, using the customElements API, such as in this example:

customElements.define("awesome-button", AwesomeButton);

This…

Dénes Máté Bencze

Senior Frontend Engineer @ Coya | ex-Amazon | ex-Revolut

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store