Is it OK to use unknown HTML tags?

前端 未结 12 1216
梦如初夏
梦如初夏 2020-11-30 04:54

Correct me if I\'m mistaken, but AFAIK, unknown HTML tags in markup (i.e. tags not defined in the HTML spec, like say, ) will eventually be treate

12条回答
  •  [愿得一人]
    2020-11-30 04:58

    Yes We Can.

    There is a new spec going on about custom elements/tag - http://w3c.github.io/webcomponents/spec/custom/.

    Only issue with this is you have to use js to register your new element

    You can read more about this at

    https://developers.google.com/web/fundamentals/getting-started/primers/customelements

提交回复
热议问题