0
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Indus</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div id="game">
        <div id="character"></div>
    </div>
    <script src="script.js">
</body>
</html>

I'm using Atom for this. For some reason the </body> and </html> is grayed out and the rest being properly colored. This is stopping my program from running properly (obviously)

leonheess
  • 16,068
  • 14
  • 77
  • 112
Gavin C.
  • 105
  • 8

1 Answers1

1

You need a closing script tag

<script src="script.js"></script>

Script tag always need to be closed even if your tag is just referencing a file, opposed to surrounding actual Javascript.

Uuuuuumm
  • 608
  • 5
  • 21