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

              
                <div class="m-6">
  <form class="launchlist-form" action="https://getlaunchlist.com/s/JZIFPd" method="POST" target="_blank">
    <div class="w-full mr-0 text-left">
      <label for="email" class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300">Email</label>
      <input type="email" required="" placeholder="Your email" name="email" id="email" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-pink-500 focus:border-pink-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
    </div>
    <div class="mt-4">
      <label for="iphoneOwner" class="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300">Do you have an iPhone</label>
      <div class="flex flex-wrap">
        <div class="flex items-center mr-6">
          <input id="red-radio" type="radio" value="yes" name="iphoneOwner" class="w-4 h-4 text-green-600 bg-gray-100 border-gray-300 focus:ring-green-500 dark:focus:ring-green-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600">
          <label for="red-radio" class="ml-2 text-sm font-medium text-gray-900 dark:text-gray-300">Yes</label>
        </div>
        <div class="flex items-center mr-4">
          <input id="green-radio" type="radio" value="no" name="iphoneOwner" class="w-4 h-4 text-red-600 bg-gray-100 border-gray-300 focus:ring-red-500 dark:focus:ring-red-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600">
          <label for="green-radio" class="ml-2 text-sm font-medium text-gray-900 dark:text-gray-300">No</label>
        </div>
      </div>
    </div>
    <button type="submit" class="mt-4 w-full text-white bg-gradient-to-r from-pink-400 to-pink-600 focus:ring-4 focus:outline-none font-medium rounded-lg text-sm px-5 py-2.5 text-center">Sign up</button>
  </form>
  <a class="mt-6 block text-xs font-medium text-gray-500" href="https://getlaunchlist.com/?utm_source=codepen">
    <p>Waitlist powered by</p>
    <img src="https://res.cloudinary.com/launchlist/image/upload/w_120/v1652960498/media/Logo_2x_as9n4r.png" alt="LaunchList Logo">
  </a>
</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console