Learn Basic JavaScript by Building a Role Playing Game - Step 1

Tell us what’s happening:

Hi, i’m newbie in this basic javascript, i want to ask what is wrong with my code?

Your code so far


<!-- User Editable Region -->

<!DOCTYPE html> 
<html lang="en"></html>
<head>
  <meta charset="UTF-8">
  <link rel="stylesheet" href="styles.css">
</head>
<title>RPG - Dragon Repeller</title>
<body>
  <div id="game"></div>
</body>

<!-- User Editable Region -->

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

Learn Basic JavaScript by Building a Role Playing Game - Step 1

Check your html element. It should nest all your code, which means it should come after the closing body tag.

1 Like

It works, thank you :smile:

1 Like