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

Tell us what’s happening:

Describe your issue in detail here.

Hello,
I just started Javascript learning and already stuck at the step 1.
Keep showing ‘Your code should have a link element’.
What am I doing wrong?

Your code so far


<!-- User Editable Region -->

<!DOCTYPE html>
<html lang='en'></html>
<head>
<meta charset='utf-8'>
<title>RPG - Dragon Repeller</title>
<link rel="stylesheet" href="styles.css" type="text/css" />
</head>
<body>
  <div id='game'>
</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/119.0.0.0 Safari/537.36

Challenge Information:

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

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

Welcome to the forum @klclearning

You closed the html too early, so the rest of the code is not recognised by the browser.

Happy coding

1 Like

Thank you so much!! I will always check this from now on!!

2 Likes