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

Tell us what’s happening:

I keep getting told that my code does not have a like element. I tried adding the second title “Link CSS to HTML” (as you can see) but that did not help. (Should I delete it?) I tried changing “stylesheet” to “styles” and that did not work, either. I tried changing the order within the head… Any input you have would be greatly appreciated. Thank you!

Your code so far


<!-- User Editable Region -->

<!DOCTYPE html>
<html lang="en"></html>
  <meta charset="UTF-8">
  <head> 
    <title>RPG - Dragon Repeller</title>
    <link rel="stylesheet" type="text/css" href="styles.css">
    <title>Link CSS to HTML</title>
  </head>
  <body>
    <div id="game">
  </body>

<!-- User Editable Region -->

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) 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

you have 2 titles. remove the 2nd one.

also meta should be in the head not before it.

1 Like

Welcome to the forum @Elisabeth1

You closed the html too early, so any code after it will not pass the tests.

Happy coding

1 Like

Thank you. I was thinking I only needed the first one but was desperate lol.

Thank you, Teller! This was the problem!!

1 Like

Thank you. I made the change accordingly :slight_smile: