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

              
                <head>
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans" />
</head>
<body>
  <div class="container">
    <h1 id="title">Survey Form</h1>
    <form action="" id="survey-form">
      <p id="description">let us know how we can improve our services</p>
      <label for="name" id="name-label"class="left-lab">Name:</label>
       <input id="name" type="text" name="name" placeholder="Enter your name" required>
     <label for="email" id="email-label" class="left-lab">Email:</label>
     <input id="email" type="email" name="email" placeholder="Enter your Email" autocomplete="on" autofocus="on" required>
    <label for="age" id="number-label" class="left-lab">Age:</label>
    <input type="number" min="10" max="100" id="number" name="age" placeholder="Age" required>
      <label for="" class="left-lab">Which option best describes your current role:</label>
  <select id="dropdown">
    <option disabled value="Select an option">Select an option</option>
    <option>High School Student</option>
    <option>College Student</option>
    <option>employer</option>
    <option>other</option>
      </select>
      <label class="left-lab">Engagement:</label>
      <select>
        <option disabled value="Select an option">Select an option</option>
        <option>one edition</option>
        <option>two editions</option>
        <option>three editions</option>
      </select>
    <div>
       <label class="left-lab">Your Favorite Product:</label>
        <label>
           <input class="rad-in" type="radio" name="product" value="mark">
          Bookmarks</label>
       <label>
          <input class="rad-in" type="radio" name="product" value="note">
  Notebooks</label>
         <label>
         <input class="rad-in" type="radio" name="product" value="sleeves">
   Book Sleeves</label>
    </div>
  <label class="left-lab">Favorite genres:</label>
        <label>
  <input value="genre" type="checkbox" class="rad-in">
         Fantasy</label>
         <label>
            <input value="genre" type="checkbox" class="rad-in">
          Science Fiction</label>
          <label>
            <input value="genre" type="checkbox" class="rad-in">
          Bioghraphy</label>
          <label>
          <input value="genre" type="checkbox" class="rad-in">
  Horror</label>
         <label>
          <input value="genre" type="checkbox" class="rad-in">
  Poetry</label>
         <label>
          <input value="genre" type="checkbox" class="rad-in">
  Thriller</label>
         <label>
          <input value="genre" type="checkbox" class="rad-in">
  Children Books</label>
  <label class="left-lab">Language:</label>
  <select>
    <option>Arabic</option>
    <option>English</option>
    <option>French</option>
  </select>
  <label class="left-lab">Comments and suggestions:</label>
    <textarea cols="40" rows="4" id="comments" name="comment" placeholder="write your comment.."></textarea>
  <button id="submit">Submit</button>
 </form>
 </div>
</body>


              
            
!

CSS

              
                body {
  background-color: #fffaf0;
  font-family: "Open Sans", sans-serif;
}
h1 {
  text-align: center;
  font-family: cursive, serif;
}
#survey-form {
  margin: auto 120px;
  border-radius: 30px;
  background-color: #faf0e6;
  overflow: hidden;
}
p {
  text-align: center;
  padding-top: 20px;
  font-style: oblique;
  font-size: 1.3em;
}
label {
  display: block;
  margin: 20px 8px 10px 21px;
}
#number-label {
  padding-right: 13.5em;
}
.left-lab {
  font-size: 20px;
  font-weight: bold;
}
input {
  margin-left: 20px;
  padding: 8px 85px 8px 5px;
}
select {
  padding: 8px 85px 8px 5px;
  margin-left: 20px;
}
.rad-in {
  margin: auto 5px auto auto;
}
textarea {
  margin-left: 20px;
}
button {
  padding: 7px 15px;
  margin: 20px 25px;
  display: block;
  font-size: 20px;
  border: none;
  border-radius: 5px;
  color: #fff;
  background-color: #1582e1;
  cursor: pointer;
}
button:hover {
  background-color: #252629;
}

              
            
!

JS

              
                
              
            
!
999px

Console