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

Rebecca Herd
Rebecca Herd
1,350 Points

Checkbox showing up as value rather than a tick box.

Hey,

I've followed the video and double checked my html from what is show (I can't cross reference with the download as the checkboxes aren't available), but I'm seeing the 'value' within the checkbox rather than it be a tick box. Could someone I'm not sure what I've done and not sure if it could be the CSS?

3 Answers

Hi Rebecca!

Please post your code so I can take a look at it. If you do not know how to properly format your code then take a look at the Markdown Cheatsheet underneath the post box!

stephanie sutedja
stephanie sutedja
3,693 Points

I have the same problem. My values are showing up in the checkboxes.

'''HTML

<!DOCTYPE html> <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">Name:</label>
                <input type = "password" id="password" name="user_password">

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

            </fieldset>
            <fieldset>

                <legend><span class="number">2</span>Your Profile</legend>

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

                <label for="job">Job 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="ios_developer"> IOS Developer</option>
                        <option value="mobile_designer">Mobile Designer</option>
                    </optgroup>

                    <optgroup label ="Designer">
                        <option value="business_owner">Business Owner</option>
                        <option value="freelancer">Freelancer</option>
                    </optgroup>

                </select>

                <label>Interests:</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="business" value="interest_business" name="user_interest"><label class="light" for="business">Business</label>

            </fieldset>

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

        </form>


</body>

</html> '''HTML

I'm using Chrome. Could you help me? Thanks

stephanie sutedja
stephanie sutedja
3,693 Points

I found what I did wrong. should be type = not type: