cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <body>
<h1>Scratchpad vs. Codepen vs. Sublime</h1>
<ul>
  <li>Why have three tools?</li>
  <li>When should I use each?</li>
</ul>
  
  <table border="5">
    <tr>
      <td> </td>
      <td class="title">Scratchpad</td>
      <td class="title">Codepen</td>
      <td class="title">Sublime</td>
    </tr>
    <tr>
      <td class="feature">Speed of Feedback</td>
      <td class="great">Immediate</td>
      <td class="good">2-3 seconds</td>
      <td class="bad">On page refresh</td>
    </tr>
    
    
    
    <tr>
      <td class="feature">Ease of Use</td>
      <td class="great">Great for beginners</td>
      <td class="good">Fewer beginner-friendly features</td>
      <td class="bad">Difficult in the beginning</td>
    </tr>
    

    
    <tr>
      <td class="feature">Ease of Sharing</td>
      <td class="bad">Impossible</td>
      <td class="great">Easy (but requires account)</td>
      <td class="good">Difficult</td>
    </tr>
    

    
    <tr>
      <td class="feature">Power / Professionalism</td>
      <td class="bad">Low</td>
      <td class="good">Very high</td>
      <td class="great">Highest</td>
    </tr>
    

    
    <tr>
      <td class="feature">Number of Languages</td>
      <td class="bad">2 (HTML and CSS)</td>
      <td class="good">3 (HTML, CSS, JavaScript)</td>
      <td class="great">ALL* the languages</td>
    </tr>
  </table>
  

  
  <h3>So how should I write code?</h3>
  For now...
  

  
  <ol>
    <li>Write HTML in <b>Scratchpad.</b></li>
    <li>Write CSS inside of a &lt;style&gt; element in <b>Scratchpad</b>.&lt;/style&gt;</li>
    <li>If you want to share your code, use <b>Codepen</b>.</li>
  </ol>
  

  
  Later you will use <b>Sublime</b> to write code that you will save write on your computer.  
</body>

            
          
!
            
                body {
    font-family: Helvetica;
    color: #294860;
    font-size: 20px;
  }
  td {
    width: 25%;
    padding: 8px;
    font-size: 20px;
  }
  .bad {
    background-color: #E29791;
  }
  .good {
    background-color: #DFEAF1;
  }
  .great {
    background-color: #90CC83;
  }
  .feature {
    font-weight: bold;
    font-size: 20px;
    padding : 4px
  }
  .title {
    text-align: center;
    font-size: 24px;
    padding: 10px;
    font-weight: bold;
  }
            
          
!
999px
Loading ..................

Console