cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

            
              <h1>HTML5 Input Types</h1>

<form action="#">
  
  <label>Text</label>
  <input type="text">
  
  <label>Time</label>
  <input type="time">
  
  <label>Date</label>
  <input type="date" min="2015-05-15" max="2015-05-25">
  
  <label>Datetime</label>
  <input type="datetime">
  
  <label>Datetime-local</label>
  <input type="datetime-local" min="2014-09-09T12:00:00.00">

  <label>Month</label>
  <input type="month">

  <label>Week</label>
  <input type="week">

  <label>Email</label>
  <input type="email">

  <label>Tel</label>
  <input type="tel">

  <label>Search</label>
  <input type="search">

  <label>Number</label>
  <input type="number" step="any">
  <input type="number" pattern="[0-9]*" placeholder="Number type with number pattern">
  <p>* iOS's default number keyboard is not the number pad. If you add the pattern, it will use the pad.</p>
  <p>** Samsung devices do not support decimal points in there number pad implementation. 3/18/14</p>
    <p>*** Samsung devices do support decimal points in telephone pad. 6/12/14</p>

  <label>URL</label>
  <input type="url">

  <label>Range</label>
  <input type="range">

  <label>Color</label>
  <input type="color">

  <label>Pattern</label>
  <input type="text" pattern="[0-9]*" placeholder="Text type with number pattern">

  <label>Dropdown</label>
  <select>
    <option>Item 1</option>
    <option>Item 2</option>
    <option>Item 3</option>
    <option>Item 4</option>
    <option>Item 5</option>
    <option>Item 6</option>
  </select>

  <label>Username Field w/ auto-capitalize off</label>
  <input autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" />

</form>
            
          
!
            
              body { 
  margin: 0 auto; 
  max-width: 320px;
  background: #eee;
  font: 16px sans-serif;
}

label {
  display: block;
  margin-top: 10px;
}
input, select {
  display: block;
  width: 100%;
  padding: 3px 5px;
  line-height: 26px;
  border-radius: 3px;
  border: 1px solid #bbb;
  box-sizing: content-box;
  -webkit-appearance: none;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console