Pen Settings



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


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


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.


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.

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.


                <div class="container">
  <form class="form" method="POST" action="">
    <input type="hidden" name="_honeypot" value="" />
    <h1>Contact Us</h1>
    <div class="row">
      <div class="input-group">
        <label for="firstName">First Name</label>
        <input name="firstName" id="firstName" required pattern="^\w+[\w\s]*\w+$" maxlength="50" autofocus placeholder="e.g. John" />
      <div class="input-group">
        <label for="lastName">Last Name</label>
        <input name="lastName" id="lastName" required pattern="^\w+[\w\s]*\w+$" maxlength="100" placeholder="e.g. Doe" />
    <div class="input-group">
      <label for="email">E-mail</label>
      <input name="email" type="email" id="email" maxlength="200" required placeholder="e.g. [email protected]" />
    <div class="input-group">
      <label for="subject">Subject</label>
      <input name="subject" id="subject" required pattern="^\w+[\w\s]*\w+$" maxlength="50" placeholder="e.g. John's Enquiry" />
    <div class="input-group">
      <label for="reason">Which of the following best describes your enquiry?</label>
      <select name="reason" id="reason">
        <option>I want to buy</option>
        <option>I want more information</option>
    <div class="input-group">
      <label for="message">Message</label>
      <textarea name="message" id="message" maxlength="4000" required placeholder="e.g. Hello..."></textarea>
    <div class="row input-group">
      <input name="consentGiven" id="consentGiven" type="checkbox" required>
      <label for="consentGiven">I agree to the Privacy Policy</label>
    <div class="row input-group">
      <input name="marketingConsentGiven" id="marketingConsentGiven" type="checkbox">
      <label for="marketingConsentGiven">I agree to being contacted for marketing purposes</label>
    <button type="submit">Submit</button>


  background-color: #333
  max-width: 100vw
  min-height: 100vh
  overflow-x: hidden

  display: flex
  justify-content: center
  align-items: center
  width: 100%
  height: 100%
  padding: 20px 10px

    background-color: #555
    padding: 20px
    display: flex
    flex-direction: column
    gap: 1.5rem
    color: #eee
    min-width: 340px
      display: flex
      flex-direction: column
      gap: 0.5rem
      display: flex
      flex-direction: row
      gap: 1rem
      width: 100%
      align-items: center
    input, textarea, button, select
      display: block
      border: 1px solid #333
      border-radius: 5px
      padding: 0.5rem 1rem
        color: inherit
        opacity: 0.3
      min-height: 5rem
      background-color: #87CEEB
      color: #fff
      font-weight: 700