Pen Settings



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


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


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.


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.


                <h2>Using <code>children</code> and <code>find</code> in jQuery</h2>

<p>I have <span><b>written</b></span> a lot of text here. Most of this text won't make any <span><i>sense</i></span>. I had to just write it down so that I could include so <span><b>tags</b></span> here and there which I can then style using jQuery.</p>
<p>Are you actually reading all this text? <span><b>Please stop!</b></span> You have <span><i>not</i></span> found anything interesting until now and you won't find <span><b>anything</b></span> in <span><i>next</i></span> paragraph.</p>
<p>The <b>bold</b> and <i>italic</i> text here is not enclosed within span tags. This has been done to demonstrate the difference between <code>children</code> and <code>find</code>.</p>


                * {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans';
  text-align: 'justify';

body {
  padding: 20px;

h2 {
  margin-top: 35px;
  margin-bottom: 20px;

p {
  line-height: 2;
  margin-bottom: 15px;

i, b {
  padding: 0 4px;


                $("p").children("b, i").css("border-bottom","2px solid black");

$("p").find("b, i").css("background", "yellow");