which allows developers to create their own custom HTML tags. code example
Example 1: custom html tags
<my-tag id="yourId" some-attr="someval"></my-tag>
my-tag {
color: red;
}
Example 2: create custom html element
class className extends HTMLElement{
contructor(){
super()
this._root = this.attachShadow({mode:"open"})
connectedCallback(){
}
disconnectedCallback(){
}
adoptedCallback(){
}
attributeChangedCallback(nameOfAtr, oldValue, newValue){
}
}
}
window.customElements.define("what you want your tag name to be",class name of tag)