<example-element>test</example-element>
class ExampleElement extends HTMLElement {
    constructor() {
        super();

        console.log("Example element added to page.");
    }
}

customElements.define("example-element", ExampleElement);
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.