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

              
                <map id="infographic">
    <area shape="poly" coords="130,147,200,107,254,219,130,228" href="https://developer.mozilla.org/docs/Web/HTML" target="_blank" alt="HTML" />
    <area shape="poly" coords="130,147,130,228,6,219,59,107" href="https://developer.mozilla.org/docs/Web/CSS" target="_blank" alt="CSS" />
    <area shape="poly" coords="130,147,200,107,130,4,59,107" href="https://developer.mozilla.org/docs/Web/JavaScript" target="_blank" alt="JavaScript" />
</map>
<img class="info" usemap="#infographic" src="https://assets.codepen.io/3230/mdn-info2.png" alt=" MDN infographic" />

<img src="https://assets.codepen.io/3230/sample-usemap.png" usemap="#shapes" alt="Four shapes are available: a red hollow box, a green circle, a blue triangle, and a yellow four-pointed star.">
<map name="shapes">
    <area shape=rect coords="50,50,100,100"> <!-- the hole in the red box -->
    <area shape=rect coords="25,25,125,125" href="red.html" alt="Red box.">
    <area shape=circle coords="200,75,50" href="green.html" alt="Green circle.">
    <area shape=poly coords="325,25,262,125,388,125" href="blue.html" alt="Blue triangle.">
    <area shape=poly coords="450,25,435,60,400,75,435,90,450,125,465,90,500,75,465,60" href="yellow.html" alt="Yellow star.">
</map>

<img src="https://assets.codepen.io/3230/rectangle_ver_1.png" usemap="#rectangle">
<map id="rectangle">
    <area shape="rect" coords="10,10,620,150">
    <area shape="default" href="rect.html" alt="rectangle">
</map>
              
            
!

CSS

              
                .info {
    display: block;
    width: 260px;
    height: 232px;
}

area:focus {
    outline: 2px solid red;
}

              
            
!

JS

              
                    
              
            
!
999px

Console