Pen Settings



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


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


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.


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.


    <title>My First Webpage</title>
    <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>
        <li>Artichoke hearts</li>
        <li>Ping Pong</li>
        <li><a href="">Google</a></li>
      <p>I also really like corgis!</p>
      <p><img src="" /></p>
      <strong>A list of things I'm really good at:</strong>
        <li>Sleeping past my alarm every morning</li>
        <li>Making puns</li>
        <li>Halo 2</li>
        <li>Blowing bubble gum bubbles</li>
      <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>


                body {
  font-family: sans-serif;
  background: url('');
  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;