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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.


                <form id="myform" action="get">
    <legend>Your web development skillset</legend>
    <div class="formgrid">
      <input id="name" name="name" type="text" />
      <label for="name">name</label>
      <select id="experience" name="experience">
        <option value="1">1 year or less</option>
        <option value="2">2 years</option>
        <option value="3">3 - 4 years</option>
        <option value="5">5 years or more</option>
      <label for="experience">experience</label>
      <input id="html" name="html" type="checkbox" />
      <label for="html">HTML</label>
      <input id="css" name="css" type="checkbox" />
      <label for="css">CSS</label>
      <input id="javascript" name="javascript" type="checkbox" />
      <label for="javascript">JavaScript</label>
      <textarea id="skills" name="skills" rows="5" cols="20"></textarea>
      <label for="skills">other skills</label>
      <button type="submit">SUBMIT</button>

<p>This layout uses floated field and label elements. It works in all browsers including IE8 and above. However, label alignment is difficult and the layout can break at smaller screensizes. CSS changes are required if longer labels become necessary.</p>


                /* basic styles */
body, input, textarea, select, option, button, label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Droid Sans", "Helvetica Neue", sans-serif;
  font-size: 100%;

body {
  color: #333;
  background-color: #9bd;

p {
  max-width: 40em;
  margin: 1em auto;

fieldset {
  max-width: 40em;
  padding: 4px;
  margin: 2em auto;
  border: 0 none;

legend {
  font-size: 1.2em;
  width: 100%;
  border-bottom: 1px dotted #99c;

input, output, textarea, select, button {
  box-sizing: border-box;
  padding: 0.2em 0.4em;
  margin: 0.2em 0;
  outline: 0 none;
  border: 0 none;
  box-shadow: none;

button {
  max-width: 9em;
  padding: 0.2em 2em;
  background-color: #ddd;
  box-shadow: 0 2px 0 #bbb;
  cursor: pointer;

label {
  box-sizing: border-box;
  user-select: none;
  cursor: pointer;

input:focus + label, textarea:focus + label, select:focus + label {
  color: #933;

input:checked + label {
  font-weight: bold;

/* fallback 30%/70% float layout */
input, output, textarea, select, button {
  clear: both;
  float: right;
  width: 70%;

label {
  float: left;
  width: 30%;
  text-align: right;
  padding: 0.25em 1em 0 0;

button, input[type="checkbox"], input[type="radio"] {
  width: auto;
  float: left;
  margin: 0.5em 0.5em 0 30%;

input[type="checkbox"] + label, input[type="radio"] + label {
  width: auto;
  text-align: left;


  e => {
    alert('Nothing to see here.\nPlease move along.');