custom html tags
//HTML
<my-tag id="yourId" some-attr="someval"></my-tag>
//CSS
my-tag {
color: red;
}
custom html tags
//HTML
<my-tag id="yourId" some-attr="someval"></my-tag>
//CSS
my-tag {
color: red;
}
create custum tage html
The document.registerElement() method is used to create a custom HTML element. This should be passed as the name of your custom element along with an (optional) object that defines the API.
var XTreehouseElement = document.registerElement('x-treehouse');
document.body.appendChild(new XTreehouseElement());
<x-treehouse></x-treehouse>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us