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

              
                <h1>Best ever brownies</h1>
<p>A recipe using the <code>&lt;meter&gt;</code> element, inspired by <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meter#simple_example">MDN's example</a> of using it to illustrate... oven temperature. All max values are based on the average package size at Tesco.</p>
<h2>Ingredients</h2>
<ul>
  <li><meter min="0" max="250" value="180">180g</meter> butter</li>
  <li><meter min="0" max="1000" value="225">225g</meter> caster sugar</li>
  <li><meter min="0" max="200" value="40">40g</meter> cocoa powder</li>
  <li><meter min="0" max="6" value="2">2</meter> eggs</li>
    <li><meter min="0" max="1000" value="50">50g</meter> self-raising flour</li>
    <li><meter min="0" max="100" value="50">50g</meter> chocolate chips</li>
    <li><meter min="0" max="35" value="2.95">0.5 tsp</meter> vanilla essence</li>
</ul>

<h2>Method</h2>
<ol>
  <li>Preheat the oven to <meter min="0" max="350" value="180">180 degrees</meter>. Grease and line a <meter min="0" max="30" value="20">20cm</meter> square brownie tin.</li>
 
  <li>In a large bowl beat the eggs, add the sugar and mix together until smooth.</li>

<li>Melt the butter in a small saucepan over a medium heat. Sift in the cocoa powder and mix. Add this mixture along with the vanilla essence (if using) to the egg and sugar mixture.</li>

<li>Sift the flour into the wet ingredients and mix together until smooth. Fold in the chocolate chips.</li>

<li>Pour into the brownie tin, and put in the oven. Cook for around <meter min="0" max="120" value="25">25 mins</meter>, until the top is a darker brown (but watch it doesn't burn!).</li>

<li>Leave to cool in the tin for <meter min="0" max="60" value="10">10 mins</meter>, then carefully turn out onto a cooling rack. For best results, wait until they're completely cooled to slice.</li>
</ol>

<p><a href="https://localghost.dev/blog/a-good-recipe-the-best-chocolate-brownies/">The actual recipe</a></p>
              
            
!

CSS

              
                body {
  padding: 1rem;
}

code {
  font-family: monospace;
}
* {
  font-family: sans-serif;
  line-height: 1.5;
}
ul {
  list-style: none;
  padding-inline-start: 0.5rem;
}
              
            
!

JS

              
                
              
            
!
999px

Console