Press "Enter" to skip to content

HTML5-Custom Tag Example

Last updated on October 4, 2019

Definition :

   This is a tag which is created by the user during run time of the program then it is called as custom tag.

Program :

<html>

     <head>

                     <script> document.createElement(“my hero”) </script>

                                 <style>

                                    myHero {

                                                display:block;

                                                background-color:#ddd;

                                                padding:50px;

                                                font-size:30px;

                                                }

                                </style>

                </head>

                <body>

                    <my Hero> my first Hero </my Hero>

                </body>

</html>

Be First to Comment

    Leave a Reply

    Your email address will not be published. Required fields are marked *