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

Tell us what’s happening:

I keep getting the error “YOur code should have a title element”, when it very clearly has an opened and closed title element.

Your code so far


<!-- User Editable Region -->

 <!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">

        </body>





    </html>

<!-- User Editable Region -->

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0

Challenge Information:

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

Hello!

Remove the space after Repeller and see if that works for you.

Maybe your code needs to be a bit more tidy. Your link is missing the closing greater than symbol. You opened a div but never closed with its complementary. The indentation spacing on the head, body and html are off.

The link tag not being closed might be causing the issue.
Line: <link rel=“stylesheet” href=“styles.css”
should be: <link rel=“stylesheet” href=“styles.css”(>) without the ()

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.