Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

Save Automatically?

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

              
                This is plain text with no HTML tags. Webpages would be boring if they were all written in plain text. So let's learn a few basic HTML tags!
<p>HTML stands for Hypertext Markup Language - it is the language of web.  HTML provides structure to web pages!</p>

<!-- This is a comment in HTML. It doesn't display anything in the browser. Use it for writing notes in your code for you and other humans to read. -->


<!-- Let's see what text looks like between heading tags -->
<h1>Text between h1 tags.</h1>
<h2>Text between h2 tags.</h2>
<h3>Text between h3 tags.</h3>
<h4>Text between h4 tags.</h4>
<h5>Text between h5 tags.</h5>
<h6>Text between h6 tags.</h6>


<p>Text between p tags. Use p tags around a paragraph.</p>

<!-- Fun fact: Lorem ipsum text is a placeholder text. It is used in mock-ups of visual design projects before the actual words are put into the finished product.  -->
<p> Here is another paragraph. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Elit eget gravida cum sociis natoque penatibus et magnis dis. Id volutpat lacus laoreet non curabitur gravida arcu ac. Enim tortor at auctor urna.</p>

<p>Yet another paragraph! <br>
  This paragraph uses br tags.<br>
  Lorem ipsum dolor sit amet, <br>
  consectetur adipiscing elit, <br>
  sed do eiusmod tempor incididunt <br>
  ut labore et dolore magna aliqua. <br>
</p>

<br>
<!-- use <ol> or <ul> tags for a list. place each listed item between <li> tags -->
<ol>
  <li>I am a list of things!</li>
  <li>In fact, an ordered list of things.</li>
  <li>To be exact, a numerical ordered list of things.</li>
</ol>

<ul>
  <li>I am a different type of list.</li>
  <li>An unordered list of things.</li>
  <li>I use bullets for each listed item.</li>
</ul>

<br>
<a href="https://www.google.com" target="_blank">Click me! I am a link.</a>

<!-- Here is an image -->
<img src="http://starwebmaker.com/images/person-02.png">


<!-- You can place an img element between <a> tags making an image a link! Click on the image and see where it takes you!-->
<br>
<p>Click the image, it's a link!</p>
<a href="https://www.instagram.com/9dotscommunity/" target="_blank">
  <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTNSK_ZcfAJlB_Qdh7Yqytt2J5iidEEgLOMgDcfm96BGDx9bz5Y">
</a>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console