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

              
                <!-- Add role="img" to the svg for ff/nvda, Safari/VO and <title>Alternative text</title> in the svg. 
NOTE - will give users a titled tooltip on hover. -->

<svg role="img">
	<title>Phone Number:</title>
	<use xlink:href="#icon-phone"></use>
</svg> 515-123-4567

<svg version="1.1" xmlns="http://www.w3.org/2000/svg" style="display: none;">
	<symbol id="icon-twitter" viewBox="0 0 24 24">
		<path d="M23.643 4.937c-.835.37-1.732.62-2.675.733a4.67 4.67 0 0 0 2.048-2.578 9.3 9.3 0 0 1-2.958 1.13 4.66 4.66 0 0 0-7.938 4.25 13.229 13.229 0 0 1-9.602-4.868c-.4.69-.63 1.49-.63 2.342A4.66 4.66 0 0 0 3.96 9.824a4.647 4.647 0 0 1-2.11-.583v.06a4.66 4.66 0 0 0 3.737 4.568 4.692 4.692 0 0 1-2.104.08 4.661 4.661 0 0 0 4.352 3.234 9.348 9.348 0 0 1-5.786 1.995 9.5 9.5 0 0 1-1.112-.065 13.175 13.175 0 0 0 7.14 2.093c8.57 0 13.255-7.098 13.255-13.254 0-.2-.005-.402-.014-.602a9.47 9.47 0 0 0 2.323-2.41z" />
	</symbol>
	<symbol id="icon-phone" viewBox="0 0 100 100">
		<path d="m81.88 81.905-8.897-15.408c-1.354-2.346-4.572-3.048-7.149-1.56l-7.88 4.55C48.249 63.051 38.34 45.892 37.622 34.27l7.879-4.55c2.578-1.488 3.581-4.623 2.225-6.97L38.83 7.338c-1.356-2.348-4.572-3.047-7.15-1.557l-8.234 4.753C9.85 18.384 23.023 51.45 29.4 62.494c6.378 11.047 28.426 38.985 42.02 31.136l8.234-4.754c2.579-1.49 3.58-4.625 2.225-6.97z" />
	</symbol>
	<symbol id="icon-location" viewBox="0 -100 500 512">
		<path d="M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z" transform="rotate(-20)" />
	</symbol>
	<symbol id="icon-beans" viewBox="0 0 243 240">
		<path d="M49 39c-12 1-24 10-33 25-21 35-21 92 0 127 9 15 21 24 33 25 11-63-31-112 0-177z" />
		<path d="M87 191c21-35 21-92 0-127-8-13-17-20-27-23-31 60 9 112 0 173 10-2 19-10 27-23zM130 129c-7 8-9 20-5 34 8 33 42 67 75 75 14 4 26 2 33-5-30-43-84-47-103-104z" />
		<path d="M241 196c-8-33-41-66-75-75-11-3-22-2-29 2 17 54 71 61 102 103 4-7 5-18 2-30zM119 85c-5-6-7-15-4-26 6-25 32-51 58-58 11-2 20-1 26 4-24 33-65 36-80 80z" />
		<path d="M205 34c-6 25-32 51-58 57-9 2-17 2-22-1 13-42 54-47 78-79 3 5 4 13 2 23z" />
	</symbol>
	<symbol id="icon-cart" viewBox="0 0 26.458 26.458">
		<path d="M2.406 2.91c-.972-.029-1.135 1.379-.182 1.572l1.755.385c.929 4.442 1.941 8.865 2.923 13.296.08.363.402.622.775.622h13.938c1.074.016 1.074-1.603 0-1.588H8.314l-.352-1.587H22.32a.794.794 0 0 0 .775-.621l1.758-7.937a.794.794 0 0 0-.775-.965c-6.073 0-12.146 0-18.219-.003l-.431-2.047a.794.794 0 0 0-.607-.612L2.563 2.93a.785.785 0 0 0-.157-.02zm8.575 16.405c-1.16 0-2.117.957-2.117 2.116 0 1.16.957 2.117 2.117 2.117 1.16 0 2.116-.957 2.116-2.117 0-1.16-.957-2.116-2.116-2.116zm7.407 0c-1.16 0-2.116.957-2.116 2.116 0 1.16.957 2.117 2.116 2.117 1.16 0 2.117-.957 2.117-2.117 0-1.16-.957-2.116-2.117-2.116z" />
	</symbol>
</svg>
              
            
!

CSS

              
                ///
// helper css just in for codepen
//

body {
	color: #000;
	font-family: "Roboto Mono", monospace;
}

svg {
	height: 24px;
	width: 24px;
}

              
            
!

JS

              
                
              
            
!
999px

Console