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

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

i don’t know why when i click n console they are telling me to add a div even though i already did this can u tell me what wrong with my code


<!-- User Editable Region -->

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

<!-- User Editable Region -->

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 OPR/105.0.0.0

Challenge Information:

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

use this:
HTML Starter Template
delete the main , and add a div with id …

@yel1
Here’s the revised version with the <meta> tag inside the <head> and the closed <title> tag:

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

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.