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

              
                <div class="container"> 
  <header class="header">
    <h1 id="title" class="text-center">Pizza Survey</h1>
    <p id="description" class="description-text-center">Thank you for taking the time to help us</p>
  </header>

<form id="survey-form">
    
    <div id="form-group">
      <label id="name-label" for="name">Name</label>
      <input
        type="text"
        name="name"
        id="name"
        class="form-control"
        placeholder="Enter your name"
        required
      />
    </div>
    <div class="form-group">
      <label id="email-label" for="email">Email</label>
      <input
        type="email"
        name="email"
        id="email"
        class="form-control"
        placeholder="Enter your Email"
        required
      />
    </div>
    <div class="form-group">
      <label id="number-label" for="number"
        >Age<span class="clue">(optional)</span></label
      >
      <input
        type="number"
        name="age"
        id="number"
        min="5"
        max="120"
        class="form-control"
        placeholder="Age"
      />
    </div>
    <div class="form-group">
      <p>Which option is your favourite pizza shop?</p>
      <select id="dropdown" name="role" class="form-control" required>
        
        <option disabled selected value>Select pizza shop</option>
        <option value="pizza-hut">Pizza Hut</option>
        <option value="papa-johns">Papa John's</option>
        <option value="boston-pizza">Boston Pizza</option>
        <option value="dominos">Dominos</option>
        <option value="pizza-pizza">Pizza Pizza</option>
        <option value="godfathers">Godfathers</option>
        <option value="pizza-nova">Pizza Nova</option>
        <option value="litte-caesars">Little Caesars</option>
        <option value="other">Other</option>
      </select>
    </div>

<div class="form-group">
      <p>Do you order the same thing everytime?</p>
      <label>
        <input
          name="crust-type"
          value="definitely"
          type="radio"
          class="input-radio"
          checked
        />Definitely</label
      >
      <label>
        <input
          name="crust-type"
          value="sometimes"
          type="radio"
          class="input-radio"
        />Sometimes</label
      >

      <label
        ><input
          name="crust-type"
          value="no"
          type="radio"
          class="input-radio"
        />No</label
      >
    </div>
      <div class="form-group">
      <p>What is you're prefered kind of crust?</p>
      <label>
        <input
          name="user-recommend"
          value="Regular"
          type="radio"
          class="input-radio"
          checked
        />Regular</label
      >
      <label>
        <input
          name="user-recommend"
          value="thin-crust"
          type="radio"
          class="input-radio"
        />Thin Crust</label
      >

      <label
        ><input
          name="user-recommend"
          value="pan-pizza"
          type="radio"
          class="input-radio"
        />Pan Pizza</label
      >
    </div>
      <div class="form-group">
      <p>
        What are your favourite toppings?
        <span class="clue">(Check all that apply)</span>
      </p>

      <label
        ><input
          name="prefer"
          value="extra-cheese"
          type="checkbox"
          class="input-checkbox"
        />Extra Cheese</label
      >
      <label>
        <input
          name="prefer"
          value="pepperoni"
          type="checkbox"
          class="input-checkbox"
        />Pepperoni</label
      >
      <label
        ><input
          name="prefer"
          value="Sausage"
          type="checkbox"
          class="input-checkbox"
        />Sausage</label
      >
      <label
        ><input
          name="prefer"
          value="ham"
          type="checkbox"
          class="input-checkbox"
        />Ham</label
      >
      <label
        ><input
          name="prefer"
          value="bacon"
          type="checkbox"
          class="input-checkbox"
        />Bacon</label
      >
      <label
        ><input
          name="prefer"
          value="black-olives"
          type="checkbox"
          class="input-checkbox"
        />Black Olives</label
      >
      <label
        ><input
          name="prefer"
          value="green-pepper"
          type="checkbox"
          class="input-checkbox"
        />Green Pepper</label
      >
      <label
        ><input
          name="prefer"
          value="mushroom"
          type="checkbox"
          class="input-checkbox"
        />Mushroom</label
      >
      <label
        ><input
          name="prefer"
          value="onion"
          type="checkbox"
          class="input-checkbox"
        />Onion</label
      >
      <label
        ><input
          name="prefer"
          value="tomato"
          type="checkbox"
          class="input-checkbox"
        />Tomato</label
      >
      <label
        ><input
          name="prefer"
          value="pineapple"
          type="checkbox"
          class="input-checkbox"
        />Pineapple</label
      >
    </div>
      
      <div class="form-group">
      <p>
        What are your favourite sides?
        <span class="clue">(Check all that apply)</span>
      </p>

      <label
        ><input
          name="sides"
          value="salad"
          type="checkbox"
          class="input-checkbox"
        />Salad</label
      >
      <label
        ><input
          name="sides"
          value="Pasta"
          type="checkbox"
          class="input-checkbox"
        />Pasta</label
      >
      <label
        ><input
          name="sides"
          value="garlic-bread"
          type="checkbox"
          class="input-checkbox"
        />Garlic Bread</label
      >
      <label
        ><input
          name="sides"
          value="breadsticks"
          type="checkbox"
          class="input-checkbox"
        />Breadsticks</label
      >
      <label
        ><input
          name="sides"
          value="boneless-chicken-bites"
          type="checkbox"
          class="input-checkbox"
        />Boneless Chicken Bites</label
      >
      <label
        ><input
          name="sides"
          value="chicken-wings"
          type="checkbox"
          class="input-checkbox"
        />Chicken Wings</label
      >
    </div>

    <div class="form-group">
      <p>Any comments?</p>
      <textarea
        id="comments"
        class="input-textarea"
        name="comment"
        placeholder="Enter your comment here..."
      ></textarea>
    </div>

    <div class="form-group">
      <button type="submit" id="submit" class="submit-button">
        Submit
      </button>
    </div>
  </form>
</div>


              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console