Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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.

HTML

              
                <h1>Kittens</h1>
<p>This site has a <strong>lot</strong> of important info about kittens.</p>

<div>
  <h2><em>Baby</em> Kitten Facts</h2>
  <p>Kitten only weight 3-4 ounces at birth!</p>
  <p>Their eyes don't open until 7-14 days after birth.</p>
  <p>They need to eat every 2-3 hours</p>
  <p>It's really important that kittens spend time with other animals during the first 12 weeks of their life.</p>
</div>

<a href="https://www.foundanimals.org/facts-about-kittens/" target="blank">More Kitten Info</a>

<button>
  <a href="https://www.rmfr-colorado.org/" target="blank">Adopt a Kitten</a>
</button>

<br>

<img src="https://bit.ly/3wVHFIA" alt="Tiny grey and brown kitten with blue eyes running towards camera">
<img src="https://bit.ly/3w1hsY9" alt="Adorable grey striped kitten plopped on the floor">
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console