Is it OK to use unknown HTML tags?

前端 未结 12 1230
梦如初夏
梦如初夏 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 05:07

    Generally not recommendable, e.g. IE wont apply css-styles to unknown tags.

    All other browsers render unknown tags as inline-Elements (which causes problems with nesting).

    I recommend you the following article: http://diveintohtml5.info/ There is a section about unknown tags.

提交回复
热议问题