Unexpected character on the second web design projects

Tell us what’s happening:
I just wrote some simple tags and i get an error i first thought it was linked to writting “(” between tags but i looked on google and found the equivalent in html :"(" but i still have an error …
and by error i mean i m coding on the codepen.io and a red error appears under this text

Your code so far

<main>
  <h1 id="title">freeCodeCamp Survey Form</h1>
  <h2 id="description">Thank you for taking the time to help us improve the platform</h2>
  <div id="content">
    <form id="survey-form">
      <div id="name">
        <label id="name-label">Name</label>
      </div>
      <div id="email">
        <label id="email-label">Email</label>
      </div>
      <div id="number">
        <label id="number-label">Age&#40;optional&#41;</label>
      </div>
    </form>
  </div>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36.

Challenge: Build a Survey Form

Link to the challenge:

I dont know why but my code didn t appear…

<main>
  <h1 id="title">freeCodeCamp Survey Form</h1>
  <h2 id="description">Thank you for taking the time to help us improve the platform</h2>
  <div id="content">
    <form id="survey-form">
      <div id="name">
        <label id="name-label">Name</label>
      </div>
      <div id="email">
        <label id="email-label">Email</label>
      </div>
      <div id="number">
        <label id="number-label">Age&#40;optional&#41;</label>
      </div>
    </form>
  </div>
</main>
<!--<main>
  <h1 id="title">freeCodeCamp Survey Form</h1>
  <h2 id="description">Thank you for taking the time to help us improve the platform</h2>
  <div id="content">
    <form id="survey-form">
      <div id="name">
        <label id="name-label">Name</label>
      </div>
      <div id="email">
        <label id="email-label">Email</label>
      </div>
      <div id="number">
        <label id="number-label">Age&#40;optional&#41;</label>
      </div>
    </form>
  </div>
</main>
-->

ok i didn t comment

label id="number-label"                Age&#40;optional&#41;                       /label

i didn t find any other solution to show code as commenting it made it disappear… i wrote the line without < >

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

1 Like

I’m not sure what problem you are having. Parentheses inside a label should be no problem. When I put your code into code pen I see no unexpected character or no red error - though I’m not sure what you mean by “this text”.

Can you be more specific? Can you provide a link to your pen?

First thank you for the ```
and i just kept coding and now there is no more red or unexpected character, i didn t touch it i have no idea but it seems fine now

1 Like


i got it againt i have no idea how

Can you link to the pen, please?

And did you type this into the pen yourself or did you cut and paste it from somewhere else, even if it was your work?

i taped it all on code pen directly, and like the other time it went away i think it s an issue of code pen but it no longer appears

Sorry, I don’t see anything wrong. I can’t help without seeing it myself.