Pen Settings



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


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.


                <!DOCTYPE html>
  <link href="|Open+Sans" rel="stylesheet">
<h1 id="title">Survey</h1>
<p id="description">We are conducting a survey to better know who you are.</p>
<form id="survey-form" action="">
  <label id="name-label" class="left">Name</label>
    <input type="text" placeholder="Name" id="name" required class="right">
  <label id="email-label" class="left">Email</label>
    <input type="email" placeholder="Email" id="email" required class="right">
  <label id="number-label" class="left">Age</label>
    <input type="number" placeholder="Age" id="number" min="0" max="120" class="right">
  <label for="dropdown" class="left"id="occupation">Occupation</label>
    <select id="dropdown" class="right">
      <option value="working">Working</option>
      <option value="learning">Learning</option>
      <option value="other">Other</option>
  <p id="radio" class="left">Please choose your favorite radio station.</p><br>
  <label for="radio-choice" id="radio-choice1" class="right">
    <input type="radio" name="radio-choice" value="CISM 89,3">CISM 89,3
  <label for="radio-choice" id="radio-choice2" class="right">
    <input type="radio" name="radio-choice" value="Virgin 95,9">Virgin 95,9
  <p id="checkbox" class="left">Select as many as apply.</p><br>
  <label id="select1" class="right"><input id="high-school" type="checkbox" name="occupation" value="High School">High School</label><br>
  <label id="select2" class="right"><input id="college" type="checkbox" name="occupation" value="College">College</label><br>
  <label id="select3" class="right"><input id="working" type="checkbox" name="occupation" value="Working">Working</label><br>
  <label id="comments-label" class="left">Comments</label>
    <textarea id="comments" rows="4" cols="30" placeholder="Additional information" class="right"></textarea>
  <button id="submit" type="submit" value="submit">Submit</button>


                main {
  background: blue;
  text-align: center;
  padding: 50px;
  font-family: K2D, sans-serif;
#description {
  padding-bottom: 20px;
#survey-form {
  margin: 0 auto;
  padding: 50px 20px;
  border-radius: 5px;
  max-width: 60%;
  background: beige;
  text-align: left;
  font-family: "Open Sans", sans-serif;
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: repeat(12, 30px);
  grid-row-gap: 20px;
  grid-column-gap: 25px;
.left {
  justify-self: end;
.right {
  justify-self: start;
#name-label {
  grid-area: 1/1/2/2;
#name {
  grid-area: 1/2/2/3;
#email-label {
  grid-area: 2/1/2/2;
#email {
  grid-area: 2/2/3/3;
#number-label {
  grid-area: 3/1/3/2;
#number {
  grid-area: 3/2/3/3;
#occupation {
  grid-area: 4/1/4/2;
#dropdown {
  grid-area: 4/2/4/3;
#radio {
  grid-area: 5/1/5/2;
#radio-choice1 {
  grid-area: 5/2/5/3;
#radio-choice2 {
  grid-area: 6/2/6/3;
#checkbox {
  grid-area: 7/1/7/2;
#select1 {
  grid-area: 7/2/7/3;
#select2 {
  grid-area: 8/2/8/3;
#select3 {
  grid-area: 9/2/9/3;
#comments-label {
  grid-area: 10/1/10/2;
#comments {
  grid-area: 10/2/11/3;
#submit {
  grid-area: 12/1/12/3;
  justify-self: center;
  border-radius: 10px;
  border: 3px black solid;