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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

              
                <html>
  <head>
    <title>My First Webpage</title>
  </head>
  <body>
    <div id="container">
      <h1>A Page About Me</h1>
      <p>Hello, world! This is a page about me. I am a member of the CS First program at Berkeley High School. I hope you have a <em>really great time</em> visiting my first webpage!</p>
      <p><strong>Favorite subject in school:</strong> Computer Science!</p>
      <br />
      <strong>A list of my favorite things:</strong>
      <ul>
        <li>Artichoke hearts</li>
        <li>Pokemon</li>
        <li>Ping Pong</li>
        <li><a href="https://www.google.com">Google</a></li>
      </ul>
      <p>I also really like corgis!</p>
      <p><img src="https://25.media.tumblr.com/tumblr_mdgjpg6AMF1qde1zfo1_1280.jpg" /></p>
      <strong>A list of things I'm really good at:</strong>
      <ol>
        <li>Sleeping past my alarm every morning</li>
        <li>Making puns</li>
        <li>Halo 2</li>
        <li>Blowing bubble gum bubbles</li>
      </ol>
      <h2>What I want to be when I grow up</h2>
      <p>I want to be an astronaut, because I want to go to space. Space is really exciting to me, because it is so large and hasn't been explored all that much. <span>I would really like to meet an alien.</span></p>
      
    </div>
  </body>
</html>
              
            
!

CSS

              
                body {
  font-family: sans-serif;
  background: url('http://www.harrymedia.com/img/data/media/813/Hp7part1.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-color: #000000;
  background-size: cover;
  color: #ffffff;
}

h1, h2 {
  font-family: serif;
}

a {
  color: #00ffff;
}

#container {
  width: 600px;
  margin: 0 auto;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 30px;
  padding-right: 30px;
  background-color: rgba(0,0,0,.7);
}

#container img {
  max-width: 600px;
}
              
            
!

JS

              
                
              
            
!
999px

Console