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

              
                <div class="header" style="font-size: 20px; font-weight: 700;">Minimal CSS Reset v2.0.0 - test page --> <a href="https://github.com/trevonerd/minimal-css-reset/" target="_blank">https://github.com/trevonerd/minimal-css-reset</a>
</div>

  <h1>this is a H1</h1>
  <h2>this is a H2</h2>
  <h3>this is a H3</h3>
  <h4>this is a H4</h4>
  <h5>this is a H5</h5>
  <h6>this is a H6</h6>

  <hr />

  <ul>
    <li>ul > li</li>
    <li>ul > li</li>
  </ul>
  <ol>
    <li>ol > li</li>
    <li>ol > li</li>
  </ol>
  <dl>
    <dt>dl > dt</dt>
    <dd>dl > dd</dd>
  </dl>

  <hr />

  <menu type="context" id="popup-menu">
    <menuitem>Action</menuitem>
    <menuitem>Another action</menuitem>
    <hr/>
    <menuitem>Separated action</menuitem>
  </menu>

  <hr />

  <p>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi fermentum volutpat purus sit amet tempus. Aenean ac massa quis nunc commodo efficitur. Ut felis neque, pellentesque et urna non, tempor tincidunt mauris. Pellentesque consequat auctor ex,
    quis fermentum tellus interdum a. Sed libero ex, varius vel massa eu, posuere iaculis lacus. Aliquam erat volutpat. In condimentum risus turpis. Vestibulum eget ultrices risus, sed dignissim lorem. Vestibulum nec sollicitudin lorem, et vehicula est.
    Curabitur a augue at arcu accumsan porttitor. Fusce convallis vel turpis ac eleifend. Morbi euismod ligula sed enim consectetur mollis. Phasellus aliquam consequat scelerisque. Donec vitae mollis urna. Nunc ut maximus augue, cursus condimentum arcu.
    Ut blandit sagittis magna in volutpat. Sed ut facilisis justo. Donec ac eros porta, laoreet magna sed, aliquet neque. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nunc pulvinar, est vitae pellentesque rutrum,
    felis magna tristique lacus, eget bibendum dolor metus quis tortor. Integer sit amet tortor lectus. Etiam pulvinar, dolor in consectetur lacinia, felis nibh consectetur sapien, non venenatis augue urna et justo. Maecenas egestas malesuada dolor, sed
    mattis lorem molestie aliquet. Nam sed tortor odio. Praesent laoreet arcu quis nulla blandit efficitur. Phasellus vehicula, metus non blandit laoreet, dolor libero pharetra felis, id facilisis ipsum elit eget magna. Donec tristique, metus vitae imperdiet
    maximus, diam nisi dignissim diam, id efficitur erat felis ac dui. Aliquam laoreet quam eget nibh molestie, eu commodo orci ultrices.</p>

  <hr />
  <p>this text is <b>bold</b></p>
  <p>this text is <i>italic</i></p>
  <p>this text is <u>underline</u></p>

  <hr />

  <a href="#">Link</a>
  <br />
  <button type="button">Button</button>

  <hr />

  <figure>
    <img src="https://via.placeholder.com/250x150//0000FF/808080?text=<figure>" alt="" width="250" height="150">
  </figure>

  <hr />

  <form>
    <fieldset>
      <legend>fieldset:</legend>
      Name: <input type="text" placeholder="name"><br> Email: <input type="email" placeholder="email"><br> Date of birth: <input type="date">
    </fieldset>
  </form>

  <hr />

  <blockquote cite="http://www.worldwildlife.org/who/index.html">
    For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.
  </blockquote>

  <p>WWF's goal is to:
    <q>Build a future where people live in harmony with nature.</q> We hope they succeed.</p>

  <hr />

  <table>
    <tr>
      <th>Month</th>
      <th>Savings</th>
    </tr>
    <tr>
      <td>January</td>
      <td>$100</td>
    </tr>
  </table>

  <hr />

  <iframe src="https://www.djtrevo.com/dance-anni-90-le-canzoni-migliori/" width="600" height="100"></iframe>

  <hr />

  <img src="https://via.placeholder.com/250x150//0000FF/808080?text=<figure>" alt="" width="250" height="150">
  <img src="https://via.placeholder.com/250x150//0000FF/808080?text=<figure>" alt="" width="250" height="150">

              
            
!

CSS

              
                // minimal-css-reset is imported in the PEN Settings -> CSS

.header {
  font-size: 20px;
  font-weight: bold;
  border-bottom: 1px solid lightgrey;

  a {
    text-decoration: underline;
    color: blue;
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console