Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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>
 
PREVIOUS NEXT
Tagged: #create #custum #tage #html
ADD COMMENT
Topic
Name
1+9 =