Is there a way to create your own html tag in HTML5?

后端 未结 18 1616
情歌与酒
情歌与酒 2020-11-22 07:39

I want to create something like


    
        aaa
        bbb
    
          


        
18条回答
  •  忘了有多久
    2020-11-22 08:27

    I found this article on creating custom HTML tags and instantiating them. It simplifies the process and breaks it down into terms anyone can understand and utilize immediately -- but I'm not entirely sure the code samples it contains are valid in all browsers, so caveat emptor and test thoroughly. Nevertheless, it's a great introduction to the subject to get started.

    Custom Elements : Defining new elements in HTML

提交回复
热议问题