HTML5 [removed] declarations

后端 未结 3 483
滥情空心
滥情空心 2020-12-06 09:55

Is it still necessary (or even good practice) when using HTML5 to declare the script type when using a script block?

e.g.

3条回答
  •  日久生厌
    2020-12-06 10:29

    The current draft of HTML5 doesn't require the type attribute for script tags.

    Also the is not required in HTML5 (it was XHTML specific anyway).

提交回复
热议问题