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.


  <h1>The Happy Page <i class="far fa-grin"></i></h1>
  <p>&hellip;where everyone is happy!</p>

  <img src='' alt=''>
    It's a happy, sunny day!<br>
    Why don't we all come out and play?<br>
    Why don't we all shout hooray?<br>
    Cause it's a happy, sunny day!<br>
    Come join us and we'll have fun<br>
    Where we can play in the sun<br>
    And skip, and hop, and dance, and run
    It's Happy Land, the place of fun!<br>

  <h2>Mr. Happy's Lil' Diary:</h2>
    <li><time datetime="1995-11-07">11/07/95</time>Added the Happy Page Poetry Corner!</li>
    <li><time datetime="1995-11-06">11/06/95</time>The Happy Page went online at 6:05 PST!</li>

  <h2>Here's what you can do on the Happy Page!</h2>
    <li><i class="fas fa-grin"></i>Send Mr. Happy some E-Mail!</li>
    <li><i class="fas fa-certificate"></i>Visit the Happy Page Poetry Corner!</li>
    <li><i class="fas fa-grin"></i>Visit the fjords of Sven's World!</li>
    <li><i class="fas fa-grin"></i>Play the Who/What Game!</li>

    <p>An Erratik Magazine production</p>
  <p>Last updated 11-07-95</p>


                body {
  background-color: darkred;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="" width="100" height="18" viewBox="0 0 100 18"%3E%3Cpath fill="%23000000" fill-opacity="0.1" d="M61.82 18c3.47-1.45 6.86-3.78 11.3-7.34C78 6.76 80.34 5.1 83.87 3.42 88.56 1.16 93.75 0 100 0v6.16C98.76 6.05 97.43 6 96 6c-9.59 0-14.23 2.23-23.13 9.34-1.28 1.03-2.39 1.9-3.4 2.66h-7.65zm-23.64 0H22.52c-1-.76-2.1-1.63-3.4-2.66C11.57 9.3 7.08 6.78 0 6.16V0c6.25 0 11.44 1.16 16.14 3.42 3.53 1.7 5.87 3.35 10.73 7.24 4.45 3.56 7.84 5.9 11.31 7.34zM61.82 0h7.66a39.57 39.57 0 0 1-7.34 4.58C57.44 6.84 52.25 8 46 8S34.56 6.84 29.86 4.58A39.57 39.57 0 0 1 22.52 0h15.66C41.65 1.44 45.21 2 50 2c4.8 0 8.35-.56 11.82-2z"%3E%3C/path%3E%3C/svg%3E');
  color: yellow;

aside, nav {
  border-bottom: 3px grey groove;

main {
  display: flex;
  align-items: center;

header {
  justify-content: center;
  text-align: center;
  flex-direction: column;

h1 {
  background-color: dimgray;
  display: block;
  padding: 20px;
  text-shadow: -2px -2px 2px mediumvioletred, 2px 2px 2px cyan;
  color: dimgray;
  font-family: sans-serif;
  box-shadow: -2px -2px 2px mediumvioletred, 2px 2px 2px cyan;

h1 + p {
  font-weight: bold;

img {
  margin-right: 10px;

ul {

aside ul {
  font-style: italic;
aside time {

nav h2 {
nav i {
  padding: 5px;

.fa-certificate {
  color: cyan;