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

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

For

7条回答
  •  春和景丽
    2020-12-05 16:14

    Basically, neither attribute is necessary. The only reason to use them is validation, and this has become void in HTML5.

提交回复
热议问题