cs
Run
Go PRO
Code panel options
Change code languages, preprocessors and plugins
HTML
JavaScript
CSS
Language
HTML
HAML
Doctype
XHTML 1.0 Strict
XHTML 1.0 Transitional
HTML 5
HTML 4.01 Strict
HTML 4.01 Transitional
HTML 4.01 Frameset
Body tag
Language
JavaScript
CoffeeScript
JavaScript 1.7
Babel + JSX
TypeScript
CoffeeScript 2
Vue
React
Preact
Extensions
Alpine.js 2.1.2
AngularJS 1.1.1
AngularJS 1.2.1
AngularJS 1.4.8
AngularJS 2.0.0-alpha.47
Bonsai 0.4.1
Brick edge
CreateJS 2013.09.25
CreateJS 2015.05.21
D3 3.x
D3 4.13.0
D3 5.9.2
Dojo (nightly)
Dojo 1.4.8
Dojo 1.5.6
Dojo 1.6.5
Dojo 1.7.12
Dojo 1.8.14
Dojo 1.9.11
Dojo 1.10.8
Dojo 1.11.4
Dojo 1.12.2
Ember (latest)
Enyo (nightly)
Enyo 2.0.1
Enyo 2.1
Enyo 2.2.0
Enyo 2.4.0
Enyo 2.5.1
Enyo 2.7.0
ExtJS 3.1.0
ExtJS 3.4.0
ExtJS 4.1.0
ExtJS 4.1.1
ExtJS 4.2.0
ExtJS 5.0.0
ExtJS 5.1.0
ExtJS 6.2.0
FabricJS 1.5.0
FabricJS 1.7.7
FabricJS 1.7.15
FabricJS 1.7.20
Inferno 1.0.0-beta9
JSBlocks (edge)
KineticJS 4.0.5
KineticJS 4.3.1
Knockout.js 2.0.0
Knockout.js 2.1.0
Knockout.js 2.2.1
Knockout.js 2.3.0
Knockout.js 3.0.0
Knockout.js 3.4.2
Lo-Dash 2.2.1
Minified 1.0 beta1
MithrilJS 0.2.0
MithrilJS 1.1.6
Mootools (nightly)
Mootools 1.3.2
Mootools 1.3.2 (compat)
Mootools 1.4.5
Mootools 1.4.5 (compat)
Mootools 1.5.1
Mootools 1.5.2
Mootools 1.5.2 (compat)
Mootools 1.6.0
Mootools 1.6.0 (compat)
No-Library (pure JS)
OpenUI5 (latest, mobile)
Paper.js 0.22
Pixi 3.0.11
Pixi 4.0.0
Processing.js 1.2.3
Processing.js 1.3.6
Processing.js 1.4.1
Processing.js 1.4.7
Prototype 1.6.1.0
Prototype 1.7.3
RactiveJS 0.7.3
Raphael 1.4
Raphael 1.5.2
Raphael 2.1.0
React 0.3.2
React 0.4.0
React 0.8.0
React 0.9.0
React 0.14.3
RightJS 2.1.1
RightJS 2.3.1
Riot 3.7.4
Shipyard (nightly)
Shipyard 0.2
Thorax 2.0.0rc3
Thorax 2.0.0rc6
Three.js r54
Three.js 105
Underscore 1.3.3
Underscore 1.4.3
Underscore 1.4.4
Underscore 1.8.3
Vue (edge)
Vue 1.0.12
Vue 2.2.1
WebApp Install 0.1
XTK edge
YUI 2.8.0r4
YUI 3.5.0
YUI 3.6.0
YUI 3.7.3
YUI 3.8.0
YUI 3.10.1
YUI 3.14.0
YUI 3.16.0
YUI 3.17.2
Zepto 1.0rc1
jQuery (edge)
jQuery 1.9.1
jQuery 2.1.3
jQuery 2.2.4
jQuery 3.2.1
jQuery 3.3.1
jQuery 3.4.1
jQuery Slim 3.2.1
jQuery Slim 3.3.1
jQuery Slim 3.4.1
jTypes 2.1.0
qooxdoo 2.0.3
qooxdoo 2.1
svg.js 2.6.5
svg.js 2.7.1
svg.js 3.0.5
script
attribute
Language
CSS
SCSS
SASS
PostCSS (Stage 0+)
PostCSS (Stage 3+)
Tailwind CSS
Reset CSS
<h1>Search…</h1> <form id="search-form" action="#"> <fieldset> <legend class="accessibility">Search our archives</legend> <label for="search" class="accessibility">Search terms</label> <input id="search" placeholder="Keywords…" type="text"> <input id="btn" type="image" src="http://dl.dropbox.com/u/2629908/misc/search.png" alt="Search"> </fieldset> </form>
html{ font:1em/1.5 "Helvetica Neue", Arial, sans-serif; color:#fff; background:#1e2024; } html, body{ margin:0; background:#1e2024; } .accessibility{ position:absolute; left:-9999px; } /* Form */ fieldset{ padding:0; width:275px; border:1px solid #4885d8; background:rgba(0,0,0,0.25); -moz-border-radius:4px; -webkit-border-radius:4px; border-radius:4px; -moz-box-shadow:0 0 10px rgba(0,0,0,0.75) inset; -webkit-box-shadow:0 0 10px rgba(0,0,0,0.75) inset; box-shadow:0 0 10px rgba(0,0,0,0.75) inset; } input{ font-size:1em; } /* Make the fieldset hug the inputs */ #search, #btn{ float:left; cursor:pointer; } #search{ width:200px; padding:15px; background:none; border:none; color:#fff; } #search:active, #search:focus{ outline:none; cursor:text; } #btn{ float:right; position:relative; top:9px; right:9px; width:32px; height:32px; }
This fiddle has previously unsaved changes.
Apply changes
Discard
Color Palette Generator
Generate a cool color palette with a few clicks