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

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

I want to create something like


    
        aaa
        bbb
    
          


        
18条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-22 08:08

    I just want to add to the previous answers that there is a meaning to use only two-words tags for custom elements. They should never be standardised.


    For example, you want to use the tag , because you don't like , and you don't like neither...

    Well, keep in mind that you're not the only one. Maybe in the future, w3c and/or browsers will specify/implement this tag.

    At this time, browsers will probably implements native style for this tag and your website's design may break.

    So I'm suggesting to use (according to this example) .


    As a matter of fact, the tag

    is well defined ie not so used, but defined. It should contain which behave like
  • .

提交回复
热议问题