What is the difference between “lang” and “type” attributes in a script tag?

后端 未结 7 1166
攒了一身酷
攒了一身酷 2020-12-05 15:54

For

7条回答
  •  心在旅途
    2020-12-05 16:14

    language is the old attribute, type is the new one. You'd have to use a transitional (not positive on that, but fairly sure) doctype to legally use both attributes.

提交回复
热议问题