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

              
                <body>
    <h1 id="title">Survey Form</h1>
    <form id="survey-form">
    <p id="description">Let us know how we can improve freeCodeCamp</p>
    <div class="persInfo">
    <div>
      <label id="name-label" for="name">* Name:</label> 
        <input type="text" name="name" id="name" placeholder="Enter your name" required/>
    </div>
    <div>
     <label id="email-label" for="email">* Email:</label>
      <input type="email" name="email" id="email" placeholder="Enter your email" required />
    </div>
    <div>
      <label id="number-label" for="age">* Age:</label> 
        <input type="number" name="age" id="number" min="1" max="100" placeholder="Age" required/> 
    </div>
  </div>
  <div>
    <div>
      <label for="current-role">Which option best describes your current role?</label>
      </div>
      <select id="dropdown" name="current-role">
        <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>
      <label for="like">* How likely is that you would recommend freeCodeCamp to a friend?</label>
    </div>
      <div>
        <ul style="list-style: none;">
          <li>
            <label>Definitely<input value="definitely" type="radio" name="radio-buttons"> 
    </label></li> 
          <li>
         <label>Maybe
          <input value="maybe" type="radio" name="radio-buttons">
        </label></li>
          <li>
        <label for="not sure">Not sure
          <input value="not sure" type="radio" name="radio-buttons">
        </label></li>
      </ul>
        </div>
        <div>
      <label for="likeability">What do you like most in FCC:</label> 
      </div>
      <div>
      <select id="dropdown" name="likeability"> 
      <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>
      <label for="improvements">Things that should be improved in the future (Check all that apply):</label>
      </div><br>
      <div>
      <input type="checkbox" name="front-end" value="front-end projects">Front-end Projects<br />
      <input type="checkbox" name="back-end" value="back-end projects">Back-end Projects<br />
      <input type="checkbox" name="data" value="data visualization">Data visualization <br />
      <input type="checkbox" name="challenges" value="challenges">Challenges  <br />
      <input type="checkbox" name="open source" value="open source community">Openn Source Community<br />
      <input type="checkbox" name="gitter" value="gitter help rooms"> Gitter help<br />
      <input type="checkbox" name="vids" value="videos"> Videos <br />
      <input type="checkbox" name="meetups" value="city meetups"> City Meetups<br />
      <input type="checkbox" name="wi-ki" value="wiki">Wiki<br />
      <input type="checkbox" name="forum" value="forum"> Forum<br />
      <input type="checkbox" name="option" value="additional courses">Additional Courses<br />
      </div> <br>

      <div>
    <label for="toAdd">Any Comments or Suggestions?</label> 
      </div><br>
    <div>
    <textarea cols="40"  rows="3" class="comments" placeholder="Enter your comment here..."></textarea>
    </div> <br />
    <div class="submit-button">
      <input type="submit" id="submit"  value="Submit" />  
    </div>
    </form>
   <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

  </body>
              
            
!

CSS

              
                body {
    background-color: rgb(178, 226, 226);
}

#title {
    font-family: sans-serif;
}

#survey-form {
    width: 60%;
    margin: auto;
    background-color: hsl(180, 9%, 98%);
    border-radius: 4px;
    padding-top: 15px;
    padding-left: 80px;
    font-size: 16px;
    font-family: sans-serif;
    color: rgb(86, 88, 88);
}

input[type=text], input[type=email], input[type=number] {
    width: 40%;
    padding: 10px 15px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 1px solid rgb(179, 174, 174);
} 

.persInfo {
    text-align: center;
}

#dropdown, #likeability {
    height: 35px;
    width: 140px;
    padding: 5px;
    margin: 10px;  
    margin-top: 15px;
    border: 1px solid rgb(179, 174, 174);
}

input[type=radio] {
  float: left;
}

#title, #description {
    text-align: center;
}

.comments {
    border: 1px solid #000;
}

.submit-button {
    text-align: center; 
}

input[type=submit] {
    background-color: rgb(52, 178, 236);
    border: none;
    color: white;
    padding: 10px 20px;
    margin: 4px 2px;
    font-size: 16px;
    border-radius: 4px;
}



              
            
!

JS

              
                
              
            
!
999px

Console