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

              
                <main lang="en">
	<figure>
		<blockquote>
			“Duty and joy go hand in hand. Duty is there so you can continue to pursue your happiness. And joy is there so that you have something real to fight for.”
		</blockquote>
		<blockquote lang="de">
			„Pflicht und Freude gehen Hand in Hand. Die Pflicht ist dafür da, dass du weiterhin nach Glück streben kannst; die Freude dafür, dass du etwas hast, wofür es sich wirklich zu kämpfen lohnt.“
		</blockquote>
		<blockquote lang="yi" dir="rtl">
			פליכט און פרייד גיין האַנט אין האַנט. פליכט איז דאָרט אַזוי אַז איר קענען פאָרזעצן צו נאָכגיין גליק; די פרייד אַז איר האָבן עפּעס וואָס איז טאַקע ווערט צו קעמפן פֿאַר.
		</blockquote>
		<p>— <cite>Gabrielle Burnham in <i>Star Trek: Discovery</i> S3:E7</cite></p>
	</figure>
</main>
              
            
!

CSS

              
                blockquote {
	margin: 1lh 0 0;
	font: 1.6em/1.4 'Abril Text', 'Georgia', 'Raanana', serif;
	font-variant-numeric: lining-nums;
	font-style: italic;
	max-width: 36ch;

	@supports (initial-letter: 2) or (-webkit-initial-letter: 2) {
		&::first-letter {
			-webkit-initial-letter: 2;
			initial-letter: 2;
			margin-inline-end: 0.2em;
		}
	}
}

p:has(cite) {
	font: 1.2em/1.2 'Franklin Gothic Book', sans-serif;
	font-variant-numeric: lining-nums;
}

:lang(yi), cite {
	font-style: normal;
}

:lang(de) {
	hyphens: auto;
}

              
            
!

JS

              
                
              
            
!
999px

Console