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

Tell us what’s happening:

Hallo!!

This is the error message I keep getting.

Sorry, your code does not pass. Try again.

Your div element should have an id attribute with the value game.

Any thoughts as to why it may not accept this code?
Div is defined. In Body. Open and Closed Div Tag.

Your code so far


<!-- User Editable Region -->

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

    </div>
  </body>
</html>

<!-- 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

Hey @CouncilOfSin
Your clossing div tag needs to be on the same like because it is creating unwanted spaces

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