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

              
                <h1>2. Does NOT use <code>scope</code>, <code>&lt;colgroup&gt;</code>, <code>&lt;thead&gt;</code>, <code>&lt;tbody&gt;</code></h1>

<p>
  Validate using <a href="https://validator.w3.org/nu/#textarea" target="_top">Nu HTML Checker</a> text box to paste in your code, or <a href="https://validator.w3.org/nu/?showsource=yes&doc=https%3A%2F%2Fcdpn.io%2Fpen%2Fdebug%2FabaomKP" target="_top">validate this entire page</a> (ignore the three CodePen errors).
</p>

<table>
  <caption>Books 2</caption>
  <tr>
    <th rowspan="2">Region</th>
    <th rowspan="2">Author</th>
    <th rowspan="2">Title</th>
    <th rowspan="2">Year</th>
    <th colspan="2">ISBN</th>
    <th colspan="3">Formats Available</th>
  </tr>
  <tr>
    <th>13</th>
    <th>10</th>
    <th>Pulp</th>
    <th>Audio</th>
    <th>Digital</th>
  </tr>
  <tr>
    <th>Asia</th>
    <th>Murasaki Shikibu<br>(<span lang="ja">紫 式部</span>, Lady Murasaki)</th>
    <td>The Tale of Genji<br>(<span lang="ja">源氏物語</span>, Genji monogatari)</td>
    <td>1021</td>
    <td>9780142437148</td>
    <td>014243714X</td>
    <td>✔</td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <th rowspan="7">Europe</th>
    <th rowspan="3">Miguel De Cervantes</th>
    <td>The Ingenious Gentleman Don Quixote of La Mancha</td>
    <td>1605</td>
    <td>9783125798502</td>
    <td>3125798507</td>
    <td>✔</td>
    <td>✔</td>
    <td>✔</td>
  </tr>
  <tr>
    <td lang="es">Novelas ejemplares</td>
    <td>1590–1612</td>
    <td>unknown</td>
    <td>unknown</td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td lang="es">La Galatea</td>
    <td>1605</td>
    <td>9788437613154</td>
    <td>unknown</td>
    <td>✔</td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <th>Sir Isaac Newton</th>
    <td>The Method of Fluxions and Infinite Series: With Its Application to the Geometry of Curve-lines</td>
    <td>1763</td>
    <td>9781330454862</td>
    <td>1330454863</td>
    <td>✔</td>
    <td>✔</td>
    <td>✔</td>
  </tr>
  <tr>
    <th rowspan="3">Mary Shelley</th>
    <td>Frankenstein; or, The Modern Prometheus</td>
    <td>1818</td>
    <td>9781530278442</td>
    <td>1530278449</td>
    <td>✔</td>
    <td>✔</td>
    <td>✔</td>
  </tr>
  <tr>
    <td>The Last Man</td>
    <td>1826</td>
    <td>unknown</td>
    <td>0192838652</td>
    <td>✔</td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td>The Beautiful Widow</td>
    <td>1835</td>
    <td>unknown</td>
    <td>1551110776</td>
    <td>✔</td>
    <td>✔</td>
    <td></td>
  </tr>
  <tr>
    <th rowspan="4">North America</th>
    <th>Herman Melville</th>
    <td>Moby-Dick; or, The Whale</td>
    <td>1851</td>
    <td>9781530697908</td>
    <td>1530697905</td>
    <td>✔</td>
    <td>✔</td>
    <td>✔</td>
  </tr>
  <tr>
    <th rowspan="2">F. Scott Fitzgerald</th>
    <td>This Side of Paradise</td>
    <td>1920</td>
    <td>9781657584419</td>
    <td>1657584410</td>
    <td>✔</td>
    <td>✔</td>
    <td>✔</td>
  </tr>
  <tr>
    <td>The Great Gatsby</td>
    <td>1925</td>
    <td>9780743273565</td>
    <td>0743273567</td>
    <td>✔</td>
    <td></td>
    <td>✔</td>
  </tr>
  <tr>
    <th rowspan="3">Nnedi Okorafor</th>
    <td>Who Fears Death</td>
    <td>2010</td>
    <td>9780756406691</td>
    <td>0756406692</td>
    <td>✔</td>
    <td>✔</td>
    <td>✔</td>
  </tr>
  <tr>
    <th rowspan="2">Africa</th>
    <td>The Book of Phoenix</td>
    <td>2015</td>
    <td>9780756410780</td>
    <td>0756410789</td>
    <td>✔</td>
    <td>✔</td>
    <td>✔</td>
  </tr>
  <tr>
    <td>Remote Control</td>
    <td>2021</td>
    <td>9781250772800</td>
    <td>125077280X</td>
    <td>✔</td>
    <td>✔</td>
    <td>✔</td>
  </tr>
</table>
              
            
!

CSS

              
                body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.4;
  /*   line-height: 1.5; */
  /*   letter-spacing: 0.12em; */
  /*   word-spacing: 0.16em; */
}

/* Standard Tables */

table {
  margin: 1em 0;
  border-collapse: collapse;
  border: 0.1em solid #d6d6d6;
}

caption {
  text-align: left;
  font-style: italic;
  padding: 0.25em 0.5em 0.5em 0.5em;
}

th,
td {
  padding: 0.25em 0.5em 0.25em 1em;
  vertical-align: text-top;
  text-align: left;
  text-indent: -0.5em;
  scroll-snap-align: start;
}

tr th {
  vertical-align: bottom;
  background-color: #666;
  color: #fff;
}

tr {
  border-bottom: 0.1em solid #d6d6d6;
}

td:nth-of-type(1) {
  font-style: italic;
/*   background: #fcf; */
}

td:nth-of-type(3),
td:nth-of-type(4) {
  text-align: right;
/*   background: #ffc; */
}

td:nth-of-type(5),
td:nth-of-type(6),
td:nth-of-type(7) {
  text-align: center;
/*   background: #cff; */
}
              
            
!

JS

              
                
              
            
!
999px

Console