html empty when script

  • 76
  • 0
  • 2018-07-11

html empty when script

I post this post because I find something interesting, following content can normally show in chrome, 

<!DOCTYPE html>
<html>
<head>
    <title>test</title>

</head>
<body>
    test word
</body>
</html>

but once I add the  < script > tag, the html become empty in chrome:

<!DOCTYPE html>
<html>
<head>
    <title>PracticeAngularJS_L9</title>
    <script src="Scripts/Script_L9.js" />
    <script src="Scripts/angular.min.js" />
</head>
<body>
    test
</body>
</html>

After some try I find that if you write <script src="..." /> , it'll cause empty page;

but if you write in <script src="..." ></script>, the page can show normally.

Maybe it's just a typo.