Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Forms Choosing Options Checkboxes

my <input type=" on my last two checkboxes are highlighted as well as my closing fieldset body and html tags. Help?

Can someone help me find the error in my code? It seems to the exact same as Nicks.

Hi, can you paste your code here? i mean like the html code .

<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Sign Up Form</title>
        <link rel="stylesheet" href="css/normalize.css">
        <link href='http://fonts.googleapis.com/css?family=Nunito:400,300' rel='stylesheet' type='text/css'>
        <link rel="stylesheet" href="css/main.css">
    </head>
    <body>

      <form action="index.html" method="host">

        <h1>Sign Up</h1>

        <fieldset>

          <legend><span class="number">1</span> Your Basic Info</legend>

          <label for="name">Name:</label>
          <input type="text" id="name" name="user_name">

          <label for="mail">Email:</label>
          <input type="email" id="mail" name="user_email">

          <label for="password">Password:</label>
          <input type="password" id="password" name="user_password">

          <label>Age:</label>
          <input type="radio" id="under_13" name="user_age"><label for="under_13" class="light">Under 13</label></fieldset><br> 
          <input type="radio" id="under_13" name="user_age"><label for="under_13" class="light">Under 13</label>

          <label for="bio">Biography:</label>
          <textarea id="bio" name="user_bio"></textarea>

          <label for="job"> Jobe role:</label>
          <select id="job" name="user_job">
            <optgroup label="Web">
              <option value="frontend_developer">Front-End Developer</option>
              <option value="php_developer">Php Developer</option>
              <option value="python_developer">Python Developer</option>
              <option value="rails_developer">Rails Developer</option>
              <option value="web_designer">Web Designer</option>
              <option value="wordpress_developer">Wordpress Developer</option>
            </optgroup>
            <optgroup label="Mobile">
              <option value="android_developer">Android Developer</option>
              <option value="mobile_designer">Mobile Designer</option>
            </optgroup>  
            <optgroup label="Business">  
              <option value="business_owner">Business Owner</option>
              <option value="freelancer">Freelancer</option>
            </optgroup>  
           </select>


           <label>Interest:</label>
            <input type="checkbox" id="development" value="interest_development" name="user_interest><label class="light" for="development">Development</label><br>
            <input type="checkbox" id="design" value="interest_design" name="user_interest><label class="light" for="design">Design</label><br>
            <input type="checkbox" id="development" value="interest_development" name="user_interest><label class="light" for="development">Development</label><br>
            <input type="checkbox" id="business" value="interest_business" name="user_interest><label class="light" for="business">Business</label><br>



           </fieldset>





        <button type="submit">Sign Up</button>

      </form>

    </body>
</html>

2 Answers

Fred Sites
Fred Sites
11,151 Points

Hi Ryan,

I think you're just missing quotations after your name = "user_interest" on all each line for the checkboxes. Hope it works!

-Fred

Kez Khou
Kez Khou
3,903 Points

Ryan Bergeson , so I started fixing and tidying up your code. As Fred Sites stated, you were missing some closing quotation marks. I'm not sure what errors you were experiencing , below you will find the code edit, and you can view a live version of the code below at http://kezkhou.com/ryanb.html hope this helps!

<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Sign Up Form</title>
        <link rel="stylesheet" href="css/normalize.css">
        <link href='http://fonts.googleapis.com/css?family=Nunito:400,300' rel='stylesheet' type='text/css'>
        <link rel="stylesheet" href="css/main.css">
    </head>
    <body>

      <form action="index.html" method="post">

        <h1>Sign Up</h1>

        <fieldset>

          <legend><span class="number">1</span> Your Basic Info</legend>

          <label for="name">Name:</label>
          <input type="text" id="name" name="user_name">

          <label for="mail">Email:</label>
          <input type="email" id="mail" name="user_email">

          <label for="password">Password:</label>
          <input type="password" id="password" name="user_password">

          <label>Age:</label>
          <input type="radio" id="under_13" name="user_age"><label for="under_13" class="light">Under 13</label></fieldset><br> 
          <input type="radio" id="under_13" name="user_age"><label for="under_13" class="light">Under 13</label>

          <label for="bio">Biography:</label>
          <textarea id="bio" name="user_bio"></textarea><br><br>

         <label for="job"> Jobe role:</label>
          <select id="job" name="user_job">
            <optgroup label="Web">
              <option value="frontend_developer">Front-End Developer</option>
              <option value="php_developer">Php Developer</option>
              <option value="python_developer">Python Developer</option>
              <option value="rails_developer">Rails Developer</option>
              <option value="web_designer">Web Designer</option>
              <option value="wordpress_developer">Wordpress Developer</option>
            </optgroup>
            <optgroup label="Mobile">
              <option value="android_developer">Android Developer</option>
              <option value="mobile_designer">Mobile Designer</option>
            </optgroup>  
            <optgroup label="Business">  
              <option value="business_owner">Business Owner</option>
              <option value="freelancer">Freelancer</option>
            </optgroup>  
           </select>


          <label>Interest:</label>
                <input type="checkbox" id="development" value="interest_development" name="user_interest"><br>
                <label>Development</label><br>
                <input type="checkbox" id="design" value="interest_design" name="user_interest"><br>
                <label class="light" for="design">Design</label><br>
                <input type="checkbox" id="development" value="interest_development" name="user_interest">
                <label class="light" for="development">Development</label><br>
                <input type="checkbox" id="business" value="interest_business" name="user_interest"><label class="light" for="business">Business</label><br>
           </fieldset>

        <button type="submit">Sign Up</button>

      </form>

    </body>
</html>