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.

Quick-add: + add another resource

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.

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.

  <div class="password_match" data-msg="Passwords doesn't match.">
        <input type="password" name="pass1" required />

      <label>Repeat password: 
        <input type="password" name="pass2" required />
  <input type="submit" name="test" value="Test it" />
              		/* HTML input password match checker
    *  Wrap the password elements with password_match class.
    *  Contents of data-msg attribute will used by browser on password mismatch.
    *  It is defined that way for i8n reasons (you can change the message while page is generated)
		function comparePassword(event) {
			var pass1, pass2;

			if (event.type == 'change') {
				// this = pass1, el = pass2
				pass1 = $(this);
				pass2 = $(event.data.el);
			} else {
				// this = pass2, el = pass1
				pass2 = $(this);
				pass1 = $(event.data.el);

			if (pass1.val() != pass2.val()) {
			} else {

		$(".password_match").each(function (i, e) {
			var msg = $(e).data('msg');
			if ($("input[type=password]", e).length == 2) {
				var elem = $("input[type=password]", e);
				$(elem[0]).change({el: elem[1], msg: msg}, comparePassword);
				$(elem[1]).keyup({el: elem[0], msg: msg}, comparePassword);
Loading ..................