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

Tell us what’s happening:

Describe your issue in detail here.

Hello!!
Can anyone helpe me with this one, please . I don’t know where is the problem.

Your code so far


<!-- User Editable Region -->

<!DOCTYPE html>
<html>
  <head>
      <meta charset= "UTF-8" />
      <title> RPG - Dragon </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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.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.

What hint are you getting? It should be telling you what you forgot to add. Once you fix that, you will get more hints telling you other things you forgot to add.

Actually, the second hint you will get is going to be misleading, because you did add it, you just added too many spaces that the tests weren’t expecting. As a general rule, for HTML attributes, do not add spaces around the equals sign.

Hi! The correct title is RPG - Dragon Repeller without a spaces around

FYI, these extra spaces in the title element do not appear to be an issue in my testing. I am able to get the code to pass with those spaces. Did you test this on your end? Were they keeping you from passing? If so, I would be interested to know what browser/OS combination you are using.

Thanks for your comment! Yes, it also passes here with these extra spaces. But in terms of writing clean code it’s a good practice to avoid extra/trailing spaces, so in my answers I usually recommend to fix it, to develop a good habit to do so.

Thanks for the clarification. I initially read your comment as implying that those spaces must be removed in order to pass and I was concerned it was going to add unnecessary confusion as to what needed to be done in order to get the code to pass. I would suggest you add a caveat next time letting them know that it is just a best practice suggestion and not a requirement.

No problem, thank you!

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