Answers for "define new html tag"

1

how to create a html tag

<html></html>
<!--this is how you do this-->
Posted by: Guest on December-11-2020
0

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>
Posted by: Guest on October-19-2020
0

how to make a tag in html

//Example

<h1> Place text here </h1>
Posted by: Guest on April-03-2021

Browse Popular Code Answers by Language