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

Tell us what’s happening:

I put the link already but why it didn’t work?

Your code so far


<!-- User Editable Region -->

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

<!-- 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/109.0.0.0 Safari/537.36

Challenge Information:

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

href not herf, careful with typos, they are the bane of programmers

I changed it already but still the problem they said i didn’t put the link even I put it already @ilenia

also the link element is self closing, remove the </link> closing tag

1 Like

I couldn’t figure it out what did I do wrong, please correct me

Your code so far


<!-- User Editable Region -->

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

<!-- 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/109.0.0.0 Safari/537.36

Challenge Information:

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

You have a typo in your div id attribute.
Also, the closing html tag should be at the very bottom of your HTML document.