css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

  <img src="http://www.davidhurwich.com/des117/codepen/kara-banner.png" />

    <a href="#"> Home </a>
    <a href="#"> Products </a>
    <a href="#"> Contact </a>

      <h2>History </h2>
        We carefully bake in small batches by hand each day using the finest ingredients sourced from local, sustainable, and whenever possible, organic producers. We are proud to offer cupcakes and cakes that are freshly baked within hours, if not minutes, for
        your enjoyment.

        <h2>About Kara</h2>

          Kara’s Cupcakes is the vision of executive pastry chef, Kara Haspel Lind. Kara always had a love for sweets, but being the daughter of a dentist, it was discouraged by her parents. Despite that, she continued to be a passionate home baker until she realized
          the importance of following her dreams. She left her job as an advertising sales executive and enrolled in Tante Marie’s Professional Pastry School in San Francisco. Soon a small, word of mouth cupcake catering business was born and quickly became so
          popular that demand for her cupcakes exceeded her ability to fill the orders and the first Kara’s Cupcakes opened in San Francisco’s Marina District. Even now, a busy mom, and nine busy bakeries selling her famous cupcakes, cakes and artisan sweets,
          Kara can still be found most mornings working in the kitchen with her dedicated pastry staff. At the same time, Kara is actively engaged in the community.</p>

    <h2>Cupcake Gallery</h2>
        <img src="http://www.davidhurwich.com/des117/codepen/kara-cupcake1.png" />
        <figcaption> Cupcake Example </figcaption> 
        <img src="http://www.davidhurwich.com/des117/codepen/kara-cupcake2.png" />
        <figcaption> Cupcake Example </figcaption> 
        <img src="http://www.davidhurwich.com/des117/codepen/kara-cupcake3.png" /> <br />
        <figcaption> Cupcake Example </figcaption> 

    <h2> Order Form </h2> 
      Name: <input type="text" /> <br />
      Credit Card #:  <input type="password" /> <br /> 
      What type of cupcakes would you like to order? 
          <option> Vanilla </option> 
          <option> Red Velvet </option> 
          <option> Chocolate </option> 
          <option> Blueberry </option> 
      </select> <br /> 
      Would you like to subscribe for cupcake updates?  <input type="checkbox" /> </br /> 
      <input type="submit" /> <br />  <br />
  <p> &copy; 2017 Kara's Cupcakes </p>
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................