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

              
                <header> Example of Broken Image </header>

<main>
  <h1>Let's Work</h1>
  <img src="https://images.unsplash.com/photo1500989145603-8e7ef71d639e?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=755&q=80" alt="bird view of a cup of coffee, notebook, keyboard and headphones on a desk">
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit est risus, mauris eleifend euismod. Mus vitae morbi sagittis odio aliquam sociis turpis nunc iaculis, arcu mollis aptent inceptos tempus dolor erat scelerisque, adipiscing consectetur accumsan ad lobortis sociosqu nibh mi. Ac elementum per malesuada volutpat placerat amet lobortis eget mauris neque vel erat pulvinar cras imperdiet, mattis nostra velit faucibus fringilla a eleifend taciti at natoque diam maecenas tempus conubia. </p>
</main>

<hr>

<header> Example of Rendered Image </header>

<main>
  <h1>Let's Work</h1>
  <img src="https://images.unsplash.com/photo-1500989145603-8e7ef71d639e?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=755&q=80" alt="bird view of coffee, notebook, keyboard and headphones on table ">
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit est risus, mauris eleifend euismod. Mus vitae morbi sagittis odio aliquam sociis turpis nunc iaculis, arcu mollis aptent inceptos tempus dolor erat scelerisque, adipiscing consectetur accumsan ad lobortis sociosqu nibh mi. Ac elementum per malesuada volutpat placerat amet lobortis eget mauris neque vel erat pulvinar cras imperdiet, mattis nostra velit faucibus fringilla a eleifend taciti at natoque diam maecenas tempus conubia. </p>
</main>
              
            
!

CSS

              
                header {
  font-size: 1.5rem;
  color: purple;
}

img {
  width: 95%;
  display: block;
  margin: auto;
}

              
            
!

JS

              
                
              
            
!
999px

Console