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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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="#">
  <input type="text">
  <input type="time">
  <input type="date" min="2015-05-15" max="2015-05-25">
  <input type="datetime">
  <input type="datetime-local" min="2014-09-09T12:00:00.00">

  <input type="month">

  <input type="week">

  <input type="email">

  <input type="tel">

  <input type="search">

  <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>

  <input type="url">

  <input type="range">

  <input type="color">

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

    <option>Item 1</option>
    <option>Item 2</option>
    <option>Item 3</option>
    <option>Item 4</option>
    <option>Item 5</option>
    <option>Item 6</option>

              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;

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................