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>Fantastic Dog</h1>

<h3>Get a load of this</h3>

<div>
    <img src="https://www.odt.co.nz/sites/default/files/story/2016/04/sprocket_8__of_dunedin_models_the_latest_look_for__1739087710.JPG"
        alt="Picture of dog" />
    <p class="blueText">Caption for the picture of this dog.</p>
</div>

<p>
    Doggo ipsum pupper such treat puggo. Sub woofer aqua doggo heckin good
    boys and girls extremely cuuuuuute fluffer woofer, the neighborhood
    pupper long bois doge long water shoob. Big ol pupper borking doggo vvv
    tungg, very good spot long woofer. Long bois the neighborhood pupper
    very hand that feed shibe heck boof most angery pupper I have ever seen,
    wow such tempt mlem very taste wow bork aqua doggo smol, smol borking
    doggo with a long snoot for pats thicc yapper sub woofer. Heck vvv pats
    pupperino heckin good boys and girls long bois puggorino long bois
    shoober corgo puggo, many pats woofer wow such tempt stop it fren most
    angery pupper I have ever seen yapper very jealous pupper borkdrive.
</p>
<p>Here's an unordered list of things this dog likes:</p>
<ul>
    <li>Meat Loaf</li>
    <li>Pina Coladas</li>
    <li>Gambling</li>
</ul>
<p>Here's an ordered list of things this dog hates:</p>
<ol>
    <li>Queues</li>
    <li>Speed Limits</li>
    <li>Garfield</li>
</ol>
<p>
    Follow <a href="www.google.com" target="_blank">this link</a> for more
    information!
</p>
<h4>Please complete this short survey</h4>
<form action="">
    <p>Will you befriend this dog?</p>
    <label for="yes">
        <input id="yes" type="radio" name="indoor-outdoor" />Yes
    </label>
    <label for="no">
        <input id="outdoor" type="radio" name="indoor-outdoor" />Oh god no </label><br /><br />
    <p>
        Which of the following emotions have you experienced whilst viewing
        this webpage?
    </p>
    <label for="joy"><input id="joy" type="checkbox" name="emotion" /> Joy</label>
    <label for="confusion"><input id="confusion" type="checkbox" name="emotion" />
        Confusion</label>
    <label for="sadness"><input id="sadness" type="checkbox" name="emotion" /> A deep and
        mysterious sadness</label>
    <br /><br />
    <input type="text" placeholder="Leave a comment here" />
    <button type="submit">Submit</button>
</form>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console