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.


                <script src=""></script>

<h1 id="title">Help choose the next chicken for the flock</h1>

<p id="description">We currently have 4 chickens and have added space for 2 more.<br/> Help us pick the chickens we add to the flock.</p>

<form id="survey-form">
  <label id="name-label">Your name</label>
  <input type="text" placeholder="full name" id="name" required>
  <label id="email-label">Your email</label>
  <input type="email" placeholder="Email address" id="email" required/>
  <label id="number-label">Number to add</label>
  <input type="number" id="number" min="1" max="3" placeholder="Enter a number from 1-3" pattern="[0-3]" required>
  <label id="breed-label">Which breed? </label>
  <select id="dropdown">
    <option>Rhode Island Red</option>
    <option>Cuckoo Maran</option>
    <legend>Should we make room for more chickens?</legend>
    <input type="radio" name="moreChickens" value="yes">
    <input type="radio" name="moreChickens" value="no">
    <legend>Should we choose just eggers, meat birds, add turkeys?</legend>
    <input type="checkbox"  id="eggers" name="turkeys" value="turkeys"><label id="eggers">Eggers</label>
    <input type="checkbox"  id="meats" name="turkeys" value="carrots"><label id="meat">Meat birds</label>
    <input type="checkbox"  id="turks" name="turkeys" value="carrots"><label id="turks">Turkeys</label>
  <label id="comments">Additional Comments</label>
  <button id="submit">Submit</button> 


                #title, #description {
  text-align: center;
  display: block;
  max-width: 400px;
  margin: 0 auto;
  background: #d3d3d3;
  padding: 20px;
  margin: 10px 0 5px;
#name, #number, #email{
  display: block;
  width: 100%;
fieldset label{
  display: inline-block;
  margin-top: 20px;