Why do I need to comment the [removed] tag in HTML?

后端 未结 4 1833
长发绾君心
长发绾君心 2020-12-18 21:24

Most examples I\'ve seen have scripts in a html page being enclosed by


I\'ve tried writing it without the comment tags a

4条回答
  •  生来不讨喜
    2020-12-18 21:37

    It's not really necessary any more. This has only ever served as a backwards-compatibility hack of sorts - when scripts first started being inserted into static HTML pages, most browsers couldn't support them. Without the comments, they would ignore the semantics of the

提交回复
热议问题