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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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

              
                <link href="https://fonts.googleapis.com/css2?family=Orbitron&display=swap" rel="stylesheet">
<h1 id="title">
  freeCodeCamp survey form
</h1>
<p id="description"><i>Thank you for taking the time to fill out this survey</i></p>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<form id="survey-form">
  <div class="form-control">
    <label for="name" id="name-label">Name</label>
    <input type="text" id="name" placeholder="Enter your name" required>
  </div>
  
  
  <div class="form-control">
    <label for="email" id="email-label">Email</label>
    <input type="email" id="email" placeholder="Enter your email" required>
  </div>
  
 
  <div class="form-control">
    <label for="age" id="number-label">Age</label>
    <input type="number" id="number" placeholder="Enter your age" min="12" max="120"  required >
  </div>
  
 
  <div class="form-control">
    <label for="role" id="label-r">Job</label>
    <select name="role" id="dropdown">;
      <option value="student">Student</option>
      <option value="student">Full-time</option>
      <option value="student">Part-time</option>
      <option value="student">Other</option>
    </select>
  </div>
            
<span class="form-control">
  <label for="recommend">Would you recommend FCC to a friend?</label>
  <label for="reccomend"><input type="radio" id="recommend-1" name="recommend"  value="definately"/> Definately</label>
  
  <label for="reccomend"><input type="radio" id="recommend-2" name="recommend" value="Maybe"/> Maybe</label>
  
  <label for="reccomend"><input type="radio" id="recommend-3" name="recommend" value="Not sure"/> Not sure</label>
</span>            
  
  <div class="form-control">
    <label for="feature" id="label-r">Job</label>
    <select name="feature" id="role">;
      <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="form-control">
    <label>What would you like to see improved?
      <small>(check all that apply)<small></label>
        
        <label for="improve-1"><input type="checkbox" name="improve" id="improve-1" value="improve-1"/>Front-end Projects</label>
          <label for="improve-2"><input type="checkbox" name="improve" id="improve-2" value="improve-2"/>Back-end Projects</label>
          <label for="improve-3"><input type="checkbox" name="improve" id="improve-3" value="improve-3"/>Data Visualization</label>
          <label for="improve-4"><input type="checkbox" name="improve" id="improve-4" value="improve-4"/>Challenges</label>
          <label for="improve-5"><input type="checkbox" name="improve" id="improve-5" value="improve-5"/>Open Source Community</label>
          <label for="improve-6"><input type="checkbox" name="improve" id="improve-6" value="improve-6"/>Gitter help rooms</label>
          <label for="improve-7"><input type="checkbox" name="improve" id="improve-7" value="improve-7"/>Videos</label>
          <label for="improve-8"><input type="checkbox" name="improve" id="improve-8" value="improve-8"/>City Meetups</label>
  <label for="improve-9"><input type="checkbox" name="improve" id="improve-9" value="improve-9"/>Wiki</label>
  <label for="improve-10"><input type="checkbox" name="improve" id="improve-10" value="improve-10"/>Forum</label>
  <label for="improve-11"><input type="checkbox" name="improve" id="improve-11" value="improve-11"/>Additional Courses</label>
        </div>   
      
      
      
     <div class="form-control">
       <label for="comments">Any comments or suggestions>
       </label>
       <textarea name="comments" id="comments" placeholder="Enter your comment here..."></textarea>
          </div>
       
       <button type="submit" id="submit">Submit</button</form>
                  
                  
  </form>
  
 
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
<script>        src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

              
            
!

CSS

              
                * {
  box-sizing: border-box;
}
body {
  background-color: #00cec9;
  font-family: 'Orbitron', sans-serif;
  text-align: center;
  margin: 0;
}

h1 {
  margin-bottom: 0;
}
 
h1 + p {
  margin-top: 0;
}


form {
  background-color: #fff;
  box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.4);
  border-radius: 2px;
  padding: 30px 20px;
  max-width: 450px;
  margin: 40px auto;
}

.form-control {
  margin-bottom: 20px;
  text-align: left;
}

.form-control input,
.form-control select,
.form-control textarea {
  border: 1px solid #777;
  border-radius: 4px;
  padding: 10px;
  font-size: 10px;
  display: block;
  min-height; 30px;
  width: 100%;
  font-family: inherit;
}

.form-control label {
  display: block;
  margin-bottom: 10px;
}

.form-control input[type="radio"] {
  display: inline-block;
  width: auto;
}

.form-control input[type="radio"],
.form-control input[type="checkbox"] {
  display: inline-block;
  width: auto;
}

button {
  background-color: #05c46b;
  border: 1px solid #05c46b;
  border-radius: 2px;
  font-family: inherit;
  font-size: 16px;
  display: block;
  padding: 10px;
  width: 100%;
}

.form-control select {
  height: 40px;
}
              
            
!

JS

              
                
              
            
!
999px

Console