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

Tell us what’s happening:

I keep getting the message that my HTML element should have an opening tag, but it does! I typed it all again and I still get the same error.

Your code so far


<!-- User Editable Region -->

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

<!-- User Editable Region -->

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15

Challenge Information:

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

Hello, just remove the us, but you need to make the first line caps. I don’t think the browser will except lowercase.

Hi there!

You just need en as a lang attribute value.