How-to create new HTML tag or custom HTML tag

In this code, we learn how to create new tags or custom HTML tags. The idea is to create a custom style or function for this tag, because standard HTML tags are defined by browsers that define their own styles and functions. In this exemple we are create new tag <newtag></newtag> with costum style for explain
<style>
newtag {
border-radius: 3px;
color: #505050;
background: #f7f7f7;
padding: 2px 4px;
box-shadow: 0 0 3px 1px;
}

</style>



<newtag contenteditable="true"> this is new tag </newtag>

<br><br><br><br>

<newtag> write any think </newtag>
How-to create new HTML tag or custom HTML tag

© 2025 Manajmnt code

Share to :

Related

Comments