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

              
                <!-- Learn front-end development at rocket speed! http://inarocket.com -->

<form>   
  <!-- Input radio: only one radio button can be selected at the same time -->
  <input type="radio" name="color" value="red" checked> Red<br>   
  <input type="radio" name="color" value="green"> Green<br>   
  <input type="radio" name="color" value="blue"> Blue<br>

  <!-- Input checkbox: checkboxes allow multiple values to be selected -->
  <input type="checkbox" id="cb1" value="phone" checked> Phone<br>   
  <input type="checkbox" id="cb2" value="tablet"> Tablet<br>
  
  <!-- Select -->
  City:  
  <select id="city" name="user-city">     
    <option value="aus">Austin, TX</option>     
    <option value="bos">Boston, MA</option>     
    <option value="nyc">New York, NY</option>     
    <option value="sfo">San Francisco, CA</option>   
  </select> 
  <br>
  
  <!-- Button: has no default behavior. It can have client-side scripts listen to the element's events, which are triggered when the events occur -->  
  <button type="button">Accept</button>
  
  <!-- Reset: resets all of the inputs in the form to their initial values -->
  <button type="reset">Reset</button>
  
  <!-- Submit: submits the form data to the server -->  
  <button type="submit">Submit</button>
</form>

              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console