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

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

I want to create something like


    
        aaa
        bbb
    
          


        
18条回答
  •  情歌与酒
    2020-11-22 08:07

    Creating your own tag names in HTML is not possible / not valid. That's what XML, SGML and other general markup languages are for.

    What you probably want is

    
    

    Or instead of

    and something like
      and
    • .

      In order to make it look and function right, just hook up some CSS and Javascript.

提交回复
热议问题