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

              
                <div id="container">
<h1 id="title">Freecodecamp survey form</h1>
<p id="description">Thank you for taking the time to help us improve the platform</p>
  </div>
<form id="survey-form">
  <div class="form-container">
    <label id="name-label"
           for="name">Name
    </label>
    <input type="text"
           name="name"
           id="name"
           placeholder="enter your name"
           required
           >
  </div>
  <div class="form-container">
  <label id="email-label"
         for="email">Email
    </label>
    <input type="email"
           name="email"
           id="email"
           placeholder="enter your email"
           required>
    </div>
  <div class="form-container">
  <label id="number-label"
         for="number">Age
    </label>
    <input type="number"
           name="number-lable"
           id="number"
           placeholder="enter your age"
           required
           min="10"
           max="99">
    </div>
  <div class="form-container">
    <p>Which option best describes your current role?</p>
    <select name="role" id="dropdown" required>
      <option disabled selected value>Select curent role</option>
      <option value="student">Student</option>
      <option value="job">Full Time Job</option>
      <option value="learner">Full Time Learner</option>
      <option value="preferNo">Prefer not to say</option>
      <option value="other">Other</option>
    </select>
  </div>
  <div class="from-container">
   <p>Would you recommend FreeCodeCamp to a friend?</p>
    <label>
      <input type="radio"
             name="user-recommend"
             value="definitely"
             class="input-radio"
             >Definitely
    </label>
    <label>
      <input type="radio"
             name="user-recommend"
             value="maybe"
             class="input-radio"
             >maybe
    </label>
    <label>
      <input type="radio"
             name="user-recommend"
             value="not-sure"
             class="input-radio"
             >Not sure
    </label>
  </div>
  <div id="form-container">
  <p>What is your favorite feature of FreeCodeCamp?</p>
  <select name="mostlike" id="most-like">
    <option disabled selected value>Select an option</option>
    <option value="challenges"> The Challenges</option>
    <option value="projects">The projects</option>
    <option value="community">The community</option>
    <option value="opensource">It's open source</option>
  </select>
</div>

  <div class="formcontainer">
    <p>What would you like to see improved?<small>(check all that apply)</small></p>
    <label>
      <input type="checkbox"
             name="prefer"
             class="input-checkbox"
             value="front-end-projects">Front-end projects
    </label>
    <label>
      <input type="checkbox"
             name="prefer"
             class="input-checkbox"
             value="back-end-projects">Back-end projects
    </label>
    <label>
      <input type="checkbox"
             name="prefer"
             class="input-checkbox"
             value="data-visualization">Data visualization
    </label>
    <label>
      <input type="checkbox"
             name="prefer"
             class="input-checkbox"
             value="challenges">Challenges
    </label>
    <label>
      <input type="checkbox"
             name="prefer"
             class="input-checkbox"
             value="open-source-community">Open source community
    </label>
    <label>
      <input type="checkbox"
             name="prefer"
             class="input-checkbox"
             value="gitter-help-rooms">Gitter help rooms
    </label>
    <label>
      <input type="checkbox"
             name="prefer"
             class="input-checkbox"
             value="videos">Videos
    </label>
    <label>
      <input type="checkbox"
             name="prefer"
             class="input-checkbox"
             value="city-meetups">City meetups
    </label>
    <label>
      <input type="checkbox"
             name="prefer"
             class="input-checkbox"
             value="wiki">Wiki
    </label>
    <label>
      <input type="checkbox"
             name="prefer"
             class="input-checkbox"
             value="forum">forum
    </label>
    <label>
      <input type="checkbox"
             name="prefer"
             class="input-checkbox"
             value="additional-courses">Additional courses
    </label>    
  </div>
<div class="form-container">
  <p>Any comments or suggestions?</p>
  <textarea
        id="comments"
        class="input-textarea"
        name="comment"
        placeholder="Enter your comment here..."
            ></textarea>
</div>
<div class="form-container">
  <button type="submit"
          id="submit"
          class="submit-button"
          >submit</button>
</div>
  
  
           

</form>











<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@300&display=swap');
#survey-form{
  display: flex;
  flex-direction: column;
  max-width:850px;
  margin:2rem auto;
  border: 4px solid #ff9933;
  background:  #a3297a;
  border-radius:15px;
  box-shadow:20px 30px 5px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23)
}

#container{
  box-shadow:0px 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23) 
}
h1{
  text-align: center;
  font-family: 'Kumbh Sans', sans-serif;
}
p{
  font-family: 'Kumbh Sans',sans-serif;
  text-align: center;
  font-size: 20px;
}
body{
  background-color:#76a8d5;
}
label,
input{
  margin: auto;
  padding: 10px;
  font-family: 'Kumbh Sans',sans-serif; 
  display: block; 
  border-radius: 15px;
  text-align: center;
}
input{
  box-shadow:0px 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
  width: 500px
    
}
#dropdown{
 position: relative;
 left:180px; 
 font-family: 'Kumbh Sans', sans-serif;
 height: 30px; 
 box-shadow:0px 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23) ;

}
#most-like{
 position: relative;
 left:180px;
 font-family: 'Kumbh Sans', sans-serif;
 height: 30px; 
  box-shadow:0px 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23) 
}
textarea{
  display: block;
  margin: auto;
  text-align: left;
  width: 500px;
  height:300px;
    box-shadow:0px 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23) 
}
#submit{
 display: block;
  margin: 20px auto;
  width:100px;
  border-radius: 5px;
  height: 30px;
  box-shadow:0px 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23) 
}
button:hover{
  background-color: #cc00cc;
  color:#ffffff;
  
}
              
            
!

JS

              
                
              
            
!
999px

Console