Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Survey Form</title>
</head>
<body>
    
<div id="header">
    <div id="title"><h1>Survey Form</h1></div>
</div>

<div id="main">

    <div id="description">Let us know how we can improve freecodecamp</div>

    <div id="survey-form">
        <form action="GET" method="GET">
            <fieldset>
                <legend>Please Enter Your Info</legend>
                
              <div class="flex-row">
                
                <div class="row">
                    <input type="text" id="name-label" name="user_name" required placeholder="Enter yourname">
                    <label for="name-label">Name:</label>
                </div>
                
                <div class="row">
                    <input type="email" id="email-label" name="user_mail" required placeholder="Enter your email">
                 <label for="email-label">E-mail:</label>
                </div>
                
                <div class="row">
                    <input type="number" id="number-label" name="user_age" required placeholder="Enter your age">
                    <label for="number-label">Age:</label>
                </div>
                
                </div>
            </fieldset>

            <fieldset>

                <legend>Please Make Your Selections</legend>
              
                <div class="flex-column">
                <div class="col">
                    <label for="role">Which option best describes your current role?</label>

                    <select id="role" name="role">
                        <option value="#" selected disabled>Select an option</option>
                        <option value="student">Student</option>
                        <option value="full-time-job">Full time job</option>
                        <option value="full-time-learner">Full time learner</option>
                        <option value="prefer-not-to-say">Prefer not to say</option>
                        <option value="other">Other</option>
                    </select>
                </div>

                <div class="col">
                    <label for="recommend">How likely is it that you would recommend freecodecamp to a friend?</label>
                        <div>
                            <input type="radio" id="definately" name="recommend" value="Definately" required>
                            <label for="Definately">Definately</label>
                        </div>
                        <div>
                            <input type="radio" id="maybe" name="recommend" value="Maybe">
                            <label for="Maybe">Maybe</label>
                        </div>
                        <div>
                            <input type="radio" id="not-sure" name="recommend" value="Not sure">
                            <label for="Definately">Not sure</label>
                        </div>

                </div>

                <div class="col">
                    <label for="fcc">What do you like most in FCC?</label>
                        <select id="dropdown" name="fcc">
                            <option value="#" selected disabled>Select an option</option>
                            <option value="challenges">Challenges</option>
                            <option value="projects">Projects</option>
                            <option value="community">Community</option>
                            <option value="open-source">Open Source</option>
                        </select>
           
                </div>

                <div class="col">
                    <label for="improved">Things that should be improved in the future (Check all that apply):</label>

                    <div>
                        <input type="checkbox" id="front-end-projects" name="improved" value="front-end-projects">
                        <label for="front-end-projects">Front-end Projects</label>
                    </div>

                    <div>
                        <input type="checkbox" id="back-end-projects" name="improved" value="back-end-projects">
                        <label for="back-end-projects">Back-end Projects</label>
                    </div>

                    <div>
                        <input type="checkbox" id="data-visualization" name="improved" value="data-visualization">
                        <label for="data-visualization">Data Visualization</label>
                    </div>

                    <div>
                        <input type="checkbox" id="challenges" name="improved" value="challenges">
                        <label for="challenges">Challenges</label>
                    </div>

                    <div>
                        <input type="checkbox" id="open-source-community" name="improved" value="open-source-community">
                        <label for="open-source-community">Open Source Community</label>
                    </div>

                    <div>
                        <input type="checkbox" id="gitter-help-rooms" name="improved" value="gitter-help-rooms">
                        <label for="gitter-help-rooms">Gitter Help Rooms</label>
                    </div>

                    <div>
                        <input type="checkbox" id="videos" name="improved" value="videos">
                        <label for="videos">Videos</label>
                    </div>

                    <div>
                        <input type="checkbox" id="city-meetups" name="improved" value="city-meetups">
                        <label for="city-meetups">City Meetups</label>
                    </div>

                    <div>
                        <input type="checkbox" id="wiki" name="improved" value="wiki">
                        <label for="wiki">Wiki</label>
                    </div>

                    <div>
                        <input type="checkbox" id="forum" name="improved" value="forum">
                        <label for="forum">Forum</label>
                    </div>

                    <div>
                        <input type="checkbox" id="additional-courses" name="improved" value="additional-courses">
                        <label for="additional-courses">Additional Courses</label>
                    </div>

                </div>

                <div class="col">
                    <label for="suggestions">Any Comments or Suggestions?</label>
                        <textarea id="suggestions" name="suggestions" placeholder="Enter your comment here . . ."></textarea>
                </div>
          </div>
          </div>
            </fieldset>
            
            <div>
                <input type="submit" placeholder="Submit">
            </div>

        </form>
    </div>

</div>

</body>
</html>
              
            
!

CSS

              
                body {
  
}

#header {
  text-align: center;
}

#main {
  width: 65%;
  margin-right: auto;
  margin-left: auto;
}

#description {
  
}

#survey-form {
  
}

form {
  
}

fieldset {
  margin-top: 10px;
}

legend {
  font-weight: bold;
}

.flex-row {
  display: flex;
  width: 65%;
  margin-right: auto;
  margin-left: auto;
}

.row {
  flex: 1;
}

.flex-column {
  display: flex;
  flex-direction: column;
  width: 75%;
  margin-right: auto;
  margin-left: auto;
  
}

.col {
  flex: 1;
}

label {
  
}

input {
  
}
              
            
!

JS

              
                
              
            
!
999px

Console