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

              
                <!-- START: Name -->
<div class="field is-horizontal">
  <div class="field-label is-normal">
    <label class="label">Name</label>
  </div>
  <div class="field-body">
		<!-- First Name -->
    <div class="field">
      <p class="control is-expanded">
        <input class="input" type="text" placeholder="First Name">
      </p>
			<p class="help">Required Field</p>
    </div>
		<!-- Last Name -->
    <div class="field">
      <p class="control is-expanded">
        <input class="input" type="text" placeholder="Last Name">
      </p>
			<p class="help">Required Field</p>
    </div>
  </div>
</div>
<!-- END: Name -->
<!-- START: Phone Number -->
<div class="field is-horizontal">
  <div class="field-label is-normal">
    <label class="label">Phone Number</label>
  </div>
  <div class="field-body">
    <div class="field is-expanded">
      <div class="field has-addons">
        <p class="control">
          <a class="button is-static">
            +1
          </a>
        </p>
        <p class="control is-expanded has-icons-right">
          <input class="input" type="tel" placeholder="555-555-5555">
					<span class="icon is-small is-right">
						<i class="fas fa-phone"></i>
					</span>
        </p>
      </div>
    </div>
  </div>
</div>
<!-- END: Phone Number -->
<!-- START: Email Address -->
<div class="field is-horizontal">
  <div class="field-label is-normal">
    <label class="label">Email Address</label>
  </div>
  <div class="field-body">
    <div class="field is-expanded">
      <div class="field has-addons">
        <p class="control is-expanded has-icons-right">
          <input class="input" type="email" placeholder="bob@microsoft.com">
					<span class="icon is-small is-right">
						<i class="fas fa-envelope"></i>
					</span>
        </p>
      </div>
			<p class="help">Required Field</p>
    </div>
  </div>
</div>
<!-- END: Email Address -->
<!-- START: Are you a platypus? -->
<div class="field is-horizontal">
  <div class="field-label">
    <label class="label">Are you a platypus?</label>
  </div>
  <div class="field-body">
    <div class="field is-narrow">
      <div class="control">
        <label class="radio">
          <input type="radio" name="platypus">
          Yes
        </label>
        <label class="radio">
          <input type="radio" name="platypus">
          No
        </label>
      </div>
    </div>
  </div>
</div>
<!-- END: Are you a platypus? -->
<!-- START: What is your favorite thing in life? -->
<div class="field is-horizontal">
  <div class="field-label is-normal">
    <label class="label">What is your favorite thing in life?</label>
  </div>
  <div class="field-body">
    <div class="field">
      <div class="control">
        <textarea class="textarea" placeholder="What is your favorite thing in life?"></textarea>
      </div>
    </div>
  </div>
</div>
<!-- END: What is your favorite thing in life? -->
<!-- START: Submit button -->
<div class="field is-horizontal">
  <div class="field-label">
    <!-- Left empty for spacing -->
  </div>
  <div class="field-body">
    <div class="field">
      <div class="control">
        <button class="button is-primary">
          Submit
        </button>
      </div>
    </div>
  </div>
</div>
<!-- END: Submit button -->
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console