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 anid
attribute with the valuegame
.
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