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

Tell us what’s happening:

Describe your issue in detail here.
I tried different methods and my code is getting an error

Your code so far

<div id="monsterStats">
  <span class="stat">
    <strong><span id="monsterName">Monster Name: </span></strong>
  </span>

  <span class="stat">
    <strong><span id="monsterHealth">Health: </span></strong>
  </span>
</div> 

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) 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 6

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.

try not going to new line