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 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/css?family=Bungee Shade' rel='stylesheet'>
<body>
  <h1 class="title">
    Survey Form 
  </h1>
  <p id="description">
    Thank you for taking the time to help us improve our platform
  </p>
  <form id="survey-form">
    <div id="contacts">
    <label id="name-label">* Name:</label>
    <input type="text" id="name" placeholder="Enter your Name" required>
    <label id="email-label">* Email:</label>
    <input type="email" id="email" placeholder="Enter your Email" required>
    <label id="number-label">Guitars Owned:</label>
    <input type="number" id="number" placeholder="Enter a Number" min="0" max="99">
    </div>
    <label>Experience Level:</label>
    <select id="dropdown">
      <option>Beginner</option>
      <option>Intermediate</option>
      <option>Advanced</option>
      <option>Shred God</option>      
    </select>
    <div id="genders">
      <label>Gender:</label> 
      <label><input type="radio" name="gender" value="male" checked="checked">Male</label>   
      <label><input type="radio" name="gender" value="female"> Female</label>   
    </div>
    <div id="acoustic">   
    <label><input type="checkbox" value="acoustic">I play Acoustic</label>
    </div>
    <div id="electric">   
    <label><input type="checkbox" value="electric">I play Electric</label>
    </div>
    <textarea placeholder="Enter your comments or suggestions here..."></textarea>
    <input type="submit" id="submit" value="submit">   
  </form>
</body>

              
            
!

CSS

              
                *,
*::before,
*::after {
  box-sizing: border-box; 
}  
body {
  background: linear-gradient(to bottom, aqua, blue);  
  background-repeat: no-repeat; 
}
.title{
  text-align:center;
  font-family: 'Bungee Shade'; 
}
.required::before{
  content: '*'; 
}
#description{
  margin-left: auto;
  margin-right: auto; 
  width: 25em; 
  padding-top: 10px; 
  padding-bottom: 20px; 
  
}
#survey-form {
  background-color: skyblue;    
  text-align: center; 
  margin: auto; 
  width: 17vw;  
  border: 5px solid red; 
  box-shadow: 2px 5px 18px 20px orange; 
  padding: 15px;  
}
#name {
  margin: 10px; 
}
#email {
  margin: 10px; 
}
#number {
  margin: 10px;  
}
#dropdown {
  margin: 10px; 

}
#genders label{
  padding: 5px; 
  display: block;
}
#acoustic {
  float: initial; 
  padding-top: 15px; 
  padding-bottom: 5px; 
}
#electric {
  float: initial; 
  padding-top: 15px;
  padding-bottom: 5px; 

}
textarea {
  margin-top: 15px; 
  margin-bottom: 15px;   
  height: 55px; 
}
#submit {
  background: lightgreen; 
  cursor: pointer;
  padding: 5px; 
  margin-top: 5px; 
  margin-bottom: 5px; 

}

              
            
!

JS

              
                
              
            
!
999px

Console