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

              
                <blockquote cite="https://en.wikipedia.org/wiki/Star_Trek:_The_Next_Generation">
	<p><i>Star Trek: The Next Generation</i> is an American science fiction television series created by Gene Roddenberry. It originally aired from September <span class="ordinal">28th</span>, 1987, to May <span class="ordinal">23rd</span>, 1994, in syndication, spanning 178 episodes and over 7 seasons. The <span class="ordinal">3rd</span> series in the <i>Star Trek</i> franchise, it is the <span class="ordinal">2nd</span> sequel to <i>Star Trek: The Original Series</i>. Set in the <span class="ordinal">24th</span> century, when Earth is part of the United Federation of Planets, it follows the adventures of a Starfleet starship, the USS <i>Enterprise</i> (NCC-1701-D), in its exploration of the Milky Way galaxy.</p>
</blockquote>

<table>
	<tbody>
		<tr>
			<td>NCC-1701-D</td>
			<td><i>Enterprise</i></td>
		</tr>
		<tr>
			<td>NCC-2893</td>
			<td><i>Stargazer</i></td>
		</tr>
	</tbody>
</table>

              
            
!

CSS

              
                body {
	margin: 1em;
	font: 1.5em/1.5 Abril Text;
	font-feature-settings: 'lnum';
/* 	font-variant-numeric: lining-nums; */
}

.ordinal {
	font-feature-settings: 'lnum', 'ordn';
/* 	font-variant-numeric: lining-nums ordinal; */
}

table {
	font-feature-settings: 'lnum', 'tnum';
/* 	font-variant-numeric: lining-nums tabular-nums; */
}

blockquote, figure {
	margin: 1.5em 0;
}

p {
	margin: 1.5em 0;
	max-width: 42ch;
}

td:not(:first-child) {
	padding-left: 0.5em;
}

td:not(:last-child) {
	padding-right: 0.5em;
}


              
            
!

JS

              
                
              
            
!
999px

Console