Tell us what’s happening:
Your div
element should have an id
attribute with the value game
.
Your code so far
<!-- User Editable Region -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>RPG - Dragon Repeller</title>
<link ref="styles.css"
</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; rv:121.0) Gecko/20100101 Firefox/121.0
Challenge Information:
Learn Basic JavaScript by Building a Role Playing Game - Step 1
Check your head section, especially ‘link’ tag. Seems you didn`t close it and didnt write rel attribut value.
I add this but is says the same,
your div
element should have an id
attribute with the value game
.
link rel=“stylesheet” type=“text/css” href=“./styles.css”
So, if its didnt work for you , try to reset progress and write code again. Maybe something went wrong. You code should like that:
<!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>
ok thank you,
I did it again but nothing and i copy past your code and neither
it’s frustrating
Teller
January 25, 2024, 6:33pm
6
Welcome to the forum
Your code passes.
Reset the step and try again. If that doesn’t work, refresh the page, disable dark mode, disable ad blockers. Or, use another browser.
If the above steps do not work, you may need to restart the computer.
Happy coding
system
Closed
July 26, 2024, 6:34am
7
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.