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

              
                  <H1 id="title">Survey Form</H1>
<body>
  <div class = "theForm">
  <p id="description">Customer satisfaction survey about your current visit to our store.</p>
  
  <form name="survey-form" method="post" id="survey-form">
<label id="name-label"><strong>Name:</strong> </label> <br>
	<input type="text" name="username" id="name" required="required" tabindex="1" placeholder="Enter your name"  class="input-field" accesskey="N"><br><br>

<label><strong>Address:</strong> </label>
	<input type="text" name="address" id="address" placeholder="Enter your address"tabindex="2" class="input-field" accesskey="D"><br><br>
	
    <label id="number-label"><strong>Age:</strong> </label>
	<input type="number" name="age" id="number" min="1" max="100" placeholder="Enter your age" tabindex="3" class="input-field" accesskey="A"><br><br>
	
    <label id="email-label"><strong>E-mail:</strong> </label>
	<input type="email" name="email" id="email" required="required" placeholder="Enter your email" tabindex="4" class="input-field" accesskey="E">
  <br><br>
    <label for="recommend" class="question">* Will you recommend our store to a friend?</label>
  <li class="radio"><label>Definitely<input name="radio-buttons" value="1"  type="radio" class="recommend" ></label>
      <li class="radio"><label>Possibly<input name="radio-buttons" value="2"  type="radio" class="recommend" ></label>
          <li class="radio"><label>Maybe<input name="radio-buttons" value="3"  type="radio" class="recommend" ></label>
              <li class="radio"><label>NO!<input name="radio-buttons" value="4"  type="radio" class="recommend" ></label></li>
  <div class="items"> 
    <label for="currentPos" class="question">What is your occupation</label><br><br>

        <select id="dropdown" name="currentStatus" class="dropdown">
      <option disabled value>Select an option</option>
      <option value="owner">Business Owner</option>
      <option value="job">Full Time Employee</option>
      <option  value="student">Student</option>
      <option value="mommy">Stay at Home Mom</option>
      <option value="retiree">Retireee</option>
      <option value="other">Other</option>
    </select></div>
         <div class="items">
        <label for="preferences" class="question">What products would you like to see us offer? <smaller>(Check all that apply):</smaller> </label>
      </div>
      <div class="ProductList">
        <ul id="preferences" style="list-style: none;">
          <li class="checkbox"><label><input name="prefer" value="1" type="checkbox" class="recommend">Shoes</label></li>
          <li class="checkbox"><input name="prefer" value="2" type="checkbox" class="recommend">Hand Bags</li>
          <li class="checkbox"><label><input name="prefer" value="3" type="checkbox" class="recommend">Dresses</label></li>
          <li class="checkbox"><label><input name="prefer" value="4" type="checkbox" class="recommend">Tops</label></li>
          <li class="checkbox"><label><input name="prefer" value="5" type="checkbox" class="recommend">Baby Items</label></li>
          <li class="checkbox"><label><input name="prefer" value="6" type="checkbox" class="recommend">Totter Clothing</label></li>
          <li class="checkbox"><label><input name="prefer" value="7" type="checkbox" class="recommend">Infant Products</label></li>
          <li class="checkbox"><label><input name="prefer" value="8" type="checkbox" class="recommend">Mens Clothing</label></li>
        </ul>
      </div>
        <div class="items">
        <label for="comments" class="question">Any Comments or Suggestions?</label>
      </div>
      <div class="items">
        <textarea id="comments" class="input-field" style="height:55px;resize:vertical;" name="comment" placeholder="Enter your comments or Suggestions here..."></textarea>
      </div>
    <br><br></div>
  <div class="button" width="100%">
    <input type="submit" value="Submit" id="submit"></div>
  </form>
    </body>
              
            
!

CSS

              
                html {
  background-color: #cc919a;
   align-items: center;
  min-width: 320px;
}
body {
margin: 0 auto;
  background-color: white;
text-align: center;
  padding: 20px 50px 20px 50px;
  font-size: 18px;
  width: 600px;
  border-radius: 60px;
}
.theForm{
  text-align: left;
}
H1 {
  text-align: center;
  background-color: #cc919a;
  color: white;
  padding: 10px;
  border-radius: 20px;
}
#description, .question {
  text-align: center;
  font-weight: bold;
}
.question{
  background-color: #ffe9ec;
}
input.error {
  border-color: red;
}
#submit {
  border-color: blue;
  background-color: blue;
  color: white;
  width: 200px;
  height: 40px;
  text-align: center;
  font-size: 20px;
}

.button {
  width: 100%;
  align-items: center;
}

.radio, .checkbox {
   list-style-type: none;
   line-height: 25px;
  position: relative;
  left: 43px;
  margin-left: 10px;
  display: block;
}
.recommend,
input[type="checkbox"] {
  float: left;
  margin-right: 5px;
}
smaller {
  font-size: 12px;
}
.items {
  margin-top: 15px;
}
 .input-field {
    width: 100%;
  }
form {
  width: 500px;
}
              
            
!

JS

              
                
              
            
!
999px

Console