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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<div id="title"> <h1>Survey Form</h1>
 
  <p id="description"> <strong>Let us know what you think about FCC</strong></p>
  <form id="survey-form">
    <div id="labels">
    
      <label for="name" id="name-label">*Full Name</label>
    <input type="text" placeholder="First Name" id="name" required class="input-field">
      <input type="text" placeholder="Last Name" id="Lastname" required class="input-field"><br><br>
      
      <label for="email" id="email-label">*E-mail</label>
    <input type="text" placeholder="Enter E-mail" id="email" class="input-field" required><br>
      
       <label for="age" id="number-label">*Phone-no</label>
    <input type="number" placeholder="Enter ur phone no." min="1" max="100" class="input-field"  id="number" >
     
       <label for="gender" id="gender">*Gender</label>
      <select id="dropdown" name="sex" class="dropdown" required>
      <option disabled value>select an option</option>
      <option value="male">Male</option>
      <option value="female">Female</option>
      </select>
        <div class="labels">
          <label for="suggest">would you suggest our courses to your friends</label><br>
           <input type="radio" value="1" name="radio-button" class="Userratings" >yes<br>
          <input type="radio" value="2" name="radio-button" class="Userratings" >no<br>
          <input type="radio" value="3" name="radio-button" class="Userratings" >maybe<br>
          
        </div>
        <div class="labels">
            <label for="suggest">What you want us to improve?</label><br>
      <input type="checkbox" value="1" name="checkbox" class="Useradvice" >Frond-End courses<br>   
           <input type="checkbox" value="2" name="checkbox" class="Useradvice" >back-End courses<br>   
           <input type="checkbox" value="3" name="checkbox" class="Useradvice" >Forums<br>
           <input type="checkbox" value="4" name="checkbox" class="Useradvice" >Meet-ups<br>   
           <label for="comments" id="comments1">any comments</label>
    <input type="text" placeholder="suggestions" class="input-field" ><br>
          <button type="text" id="submit">submit</button>
        </div>
        
    
    </div>
  </form>
</div>
</div>
              
            
!

CSS

              
                html,body{
  background-color: #729FEE  ;
  font-family:sans serif;
  font-size: 20px;
  font-color: #FF0000; 
  text-align:center;
}
#labels{
  width:10px;
  display:inline;
}
#survey-form{
  width: 100%;
  background-color: #FAFAFB;
    border: 25px solid black;
    padding: 25px;
    margin: auto;
 
  
}

              
            
!

JS

              
                
              
            
!
999px

Console