Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <fieldset disabled>
  <legend>disabled fieldset</legend>
  <table id="results" role="presentation">
    <tbody><tr>

      <td><button>button element</button>		</td>

    </tr>

    <tr>

      <td><input type="button" value="input button"></td>

    </tr>

    <tr>

      <td><input type="checkbox" value="" id="ch">

          <label for="ch">type="checkbox"</label></td>

    </tr>

    <tr>

      <td><label> file input <input type="file"></label></td>

    </tr>

    <tr>

      <td>input type='image' <input name="" type="image" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/128034/tick.png" alt="input type='image'"></td>

    </tr>

	<tr>

	  <td><p><label for="text0">type="text" required</label>

	    <input type="text" id="text0" required> </p>

		<p><label for="text01">type="text" required 2</label>

	    <input type="text" id="text01" required></p>

	    

	    <p><input type="submit" value="submit"></p></td>

	  </tr>

	<tr>

      <td><label for="text1">type="text" with placeholder</label>

          <input type="text" id="text1" placeholder="some text">  

        </td>

    </tr>

	<tr><td> <label for="form-2">Text with Datalist</label>

        <input id="form-2" list="mylist" type="text">

        <datalist id="mylist">

		<option label="Miss" value="Miss">

            </option><option label="Mr" value="Mr">

            </option><option label="Ms" value="Ms">

            </option><option label="Prof" value="Mad Professor"> 

          </option></datalist></td></tr>

    <tr>

      <td><label for="pass">type="password"</label>

          <input type="password" id="pass"></td>

    </tr>

    <tr>

      <td><input type="radio" id="radio" value="">

          <label for="radio">type="radio"</label></td>

    </tr>

    <tr>

      <td><input type="reset"></td>

    </tr>

    <tr>

      <td><label>textarea element

        <textarea name="textarea" cols="10" rows="2" placeholder="some text"></textarea>

        </label></td>

    </tr>

    <tr>

      <td><label for="search">type="search"</label>

        <input type="search" id="search">  

      </td>

    </tr>

    <tr>

      <td><label for="mail">type="email"</label>

        <input type="email" id="mail">  

        </td>

    </tr>

    <tr>

      <td><label for="t">type="tel"</label>

        <input type="tel" id="t">  

        </td>

    </tr>

    <tr>

      <td><label for="url">type="URL"</label>

       <input type="url" name="location" id="url" list="urls">

<datalist id="urls">

 <option label="MIME: Format of Internet Message Bodies" value="http://tools.ietf.org/html/rfc2045">

 </option><option label="HTML 4.01 Specification" value="http://www.w3.org/TR/html4/">

 </option><option label="Form Controls" value="http://www.w3.org/TR/xforms/slice8.html#ui-commonelems-hint">

 </option><option label="Scalable Vector Graphics (SVG) 1.1 Specification" value="http://www.w3.org/TR/SVG/">

 </option><option label="Feature Sets - SVG 1.1 - 20030114" value="http://www.w3.org/TR/SVG/feature.html">

 </option><option label="The Single UNIX Specification, Version 3" value="http://www.unix-systems.org/version3/">

</option></datalist>

       </td>

    </tr>

	 <tr>

      <td><label for="num">type="number"</label> 

        <input type="number" id="num" step="2">  

       </td>

    </tr>


    <tr>

      <td><label for="d">type="date"</label>

        <input type="date" id="d">  
</td>

    </tr>

    <tr>

      <td><label for="mo">type="month"</label>

        <input type="month" id="mo">  

       </td>

    </tr>

    <tr>

      <td><label for="wk">type="week"</label> 

        <input type="week" id="wk">  

       </td>

    </tr>

    <tr>

      <td><label for="dtl">type="datetime-local"</label>

        <input type="datetime-local" id="dtl">  

     </td>

    </tr>

	<tr>

      <td><label for="ti">type="time"</label>

        <input type="time" id="ti">  

        </td>

    </tr>

    <tr>

      <td><label for="slid">type="range"</label>

        <input type="range" id="slid" value="10" min="1" max="11">  

       </td>

    </tr>

    <tr>

      <td><label for="col">type="color"</label>

    <input type="color" id="col">  

        <span class="new">new</span></td></tr>

	<tr><td><label>select element <select name=""><option value="http://tools.ietf.org/html/rfc2045">

 </option><option value="http://www.w3.org/TR/html4/">HTML 4.01 Specification

 </option><option value="http://www.w3.org/TR/xforms/slice8.html#ui-commonelems-hint">Form Controls

 </option><option value="http://www.w3.org/TR/SVG/">Scalable Vector Graphics (SVG) 1.1 Specification

 </option><option value="http://www.w3.org/TR/SVG/feature.html">Feature Sets - SVG 1.1 - 20030114

 </option><option value="http://www.unix-systems.org/version3/">The Single UNIX Specification, Version 3

</option></select></label></td></tr>

      <tr><td><fieldset>

        <legend>legend</legend>

        <label for="tex"> label

          <input name="input" type="text" id="tex">

        </label>

      </fieldset></td>

    </tr>

   





</tbody></table>
</fieldset>

<fieldset>
  <legend>fieldset</legend>
  <table id="results" role="presentation">
    <tbody><tr>

      <td><button>button element</button>		</td>

    </tr>

    <tr>

      <td><input type="button" value="input button"></td>

    </tr>

    <tr>

      <td><input type="checkbox" value="" id="ch">

          <label for="ch">type="checkbox"</label></td>

    </tr>

    <tr>

      <td><label> file input <input type="file"></label></td>

    </tr>

    <tr>

      <td>input type='image' <input name="" type="image" src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/128034/tick.png" alt="input type='image'"></td>

    </tr>

	<tr>

	  <td><p><label for="text0">type="text" required</label>

	    <input type="text" id="text0" required> </p>

		<p><label for="text01">type="text" required 2</label>

	    <input type="text" id="text01" required></p>

	    

	    <p><input type="submit" value="submit"></p></td>

	  </tr>

	<tr>

      <td><label for="text1">type="text" with placeholder</label>

          <input type="text" id="text1" placeholder="some text">  

        </td>

    </tr>

	<tr><td> <label for="form-2">Text with Datalist</label>

        <input id="form-2" list="mylist" type="text">

        <datalist id="mylist">

		<option label="Miss" value="Miss">

            </option><option label="Mr" value="Mr">

            </option><option label="Ms" value="Ms">

            </option><option label="Prof" value="Mad Professor"> 

          </option></datalist></td></tr>

    <tr>

      <td><label for="pass">type="password"</label>

          <input type="password" id="pass"></td>

    </tr>

    <tr>

      <td><input type="radio" id="radio" value="">

          <label for="radio">type="radio"</label></td>

    </tr>

    <tr>

      <td><input type="reset"></td>

    </tr>

    <tr>

      <td><label>textarea element

        <textarea name="textarea" cols="10" rows="2" placeholder="some text"></textarea>

        </label></td>

    </tr>

    <tr>

      <td><label for="search">type="search"</label>

        <input type="search" id="search">  

      </td>

    </tr>

    <tr>

      <td><label for="mail">type="email"</label>

        <input type="email" id="mail">  

        </td>

    </tr>

    <tr>

      <td><label for="t">type="tel"</label>

        <input type="tel" id="t">  

        </td>

    </tr>

    <tr>

      <td><label for="url">type="URL"</label>

       <input type="url" name="location" id="url" list="urls">

<datalist id="urls">

 <option label="MIME: Format of Internet Message Bodies" value="http://tools.ietf.org/html/rfc2045">

 </option><option label="HTML 4.01 Specification" value="http://www.w3.org/TR/html4/">

 </option><option label="Form Controls" value="http://www.w3.org/TR/xforms/slice8.html#ui-commonelems-hint">

 </option><option label="Scalable Vector Graphics (SVG) 1.1 Specification" value="http://www.w3.org/TR/SVG/">

 </option><option label="Feature Sets - SVG 1.1 - 20030114" value="http://www.w3.org/TR/SVG/feature.html">

 </option><option label="The Single UNIX Specification, Version 3" value="http://www.unix-systems.org/version3/">

</option></datalist>

       </td>

    </tr>

	 <tr>

      <td><label for="num">type="number"</label> 

        <input type="number" id="num" step="2">  

       </td>

    </tr>


    <tr>

      <td><label for="d">type="date"</label>

        <input type="date" id="d">  
</td>

    </tr>

    <tr>

      <td><label for="mo">type="month"</label>

        <input type="month" id="mo">  

       </td>

    </tr>

    <tr>

      <td><label for="wk">type="week"</label> 

        <input type="week" id="wk">  

       </td>

    </tr>

    <tr>

      <td><label for="dtl">type="datetime-local"</label>

        <input type="datetime-local" id="dtl">  

     </td>

    </tr>

	<tr>

      <td><label for="ti">type="time"</label>

        <input type="time" id="ti">  

        </td>

    </tr>

    <tr>

      <td><label for="slid">type="range"</label>

        <input type="range" id="slid" value="10" min="1" max="11">  

       </td>

    </tr>

    <tr>

      <td><label for="col">type="color"</label>

    <input type="color" id="col">  

      </td></tr>

	<tr><td><label>select element <select name=""><option value="http://tools.ietf.org/html/rfc2045">

 </option><option value="http://www.w3.org/TR/html4/">HTML 4.01 Specification

 </option><option value="http://www.w3.org/TR/xforms/slice8.html#ui-commonelems-hint">Form Controls

 </option><option value="http://www.w3.org/TR/SVG/">Scalable Vector Graphics (SVG) 1.1 Specification

 </option><option value="http://www.w3.org/TR/SVG/feature.html">Feature Sets - SVG 1.1 - 20030114

 </option><option value="http://www.unix-systems.org/version3/">The Single UNIX Specification, Version 3

</option></select></label></td></tr>

      <tr><td><fieldset>

        <legend>legend</legend>

        <label for="tex"> label

          <input name="input" type="text" id="tex">

        </label>

      </fieldset></td>

    </tr>
</tbody></table>
</fieldset>
              
            
!

CSS

              
                fieldset {width:40%; float:left}
input,select {width: 6em}
input[type=button] {width:8em}
input[type=image] {width:2em}

              
            
!

JS

              
                
              
            
!
999px

Console