Pen Settings



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


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.


  <h1>Automated ARIA Role Assignment</h1>
  These examples are not responsive. They exist solely to demonstrate the function.
  <h2>Standard Table</h2>
  <div role="region" aria-labelledby="Cap" tabindex="0">
      <caption id="Cap">Books I May or May Not Have Read</caption>
          <td>Miguel De Cervantes</td>
          <td>The Ingenious Gentleman Don Quixote of La Mancha</td>
          <td role="cell">9783125798502</td>
          <td>Mary Shelley</td>
          <td>Frankenstein; or, The Modern Prometheus</td>
          <td>Herman Melville</td>
          <td>Moby-Dick; or, The Whale</td>
          <td>Emma Dorothy Eliza Nevitte Southworth</td>
          <td>The Hidden Hand</td>
          <td>F. Scott Fitzgerald</td>
          <td>The Great Gatsby</td>
          <td>George Orwell</td>
          <td>Nineteen Eighty-Four</td>
  <h2>Complexity 1</h2>
    <div role="region" aria-labelledby="Cap1" tabindex="0">
    <caption id="Cap1">Contact Information</caption>
      <th scope="col">Name</th>
      <th scope="col">Phone#</th>
      <th scope="col">Fax#</th>
      <th scope="col">City</th>
      <th scope="row">Joel Garner</th>
      <th scope="row">Clive Lloyd</th>
      <th scope="row">Gordon Greenidge</th>
    <h2>Complexity 2</h2>
    <div role="region" aria-labelledby="Cap2" tabindex="0">
    <caption id="Cap2">Grade Calculation</caption>
      <th rowspan="2" id="h">Homework</th>
      <th colspan="3" id="e">Exams</th>
      <th colspan="3" id="p">Projects</th>
      <th id="e1" headers="e">1</th>
      <th id="e2" headers="e">2</th>
      <th id="ef" headers="e">Final</th>
      <th id="p1" headers="p">1</th>
      <th id="p2" headers="p">2</th>
      <th id="pf" headers="p">Final</th>
      <td headers="h">15%</td>
      <td headers="e e1">15%</td>
      <td headers="e e2">15%</td>
      <td headers="e ef">20%</td>
      <td headers="p p1">10%</td>
      <td headers="p p2">10%</td>
      <td headers="p pf">15%</td>



              @import url(",400i,700");

body {
  background-color: #6d695c;
  font-size: 100%;
  color: #333;
  font-family: Lato, Arial, sans-serif;
  padding: 0;
  margin: 0;

main {
  display: block;
  box-sizing: border-box;
  width: auto;
  padding: 1em 2vw;
  margin: 1em 2vw;
  color: #000;
  background-color: rgba(204, 204, 204, 0.7);
  border: 0.07em solid rgba(0, 0, 0, 0.5);
  border-radius: 0.5em;
  line-height: 1.5;

table {
  margin: 1em 0;
  border-collapse: collapse;
/*   width: 100%; */

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

td {
  padding: 0.25em 0.5em 0.25em 1em;
  vertical-align: text-top;
  text-align: left;
  text-indent: -0.5em;

th {
  vertical-align: bottom;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-weight: bold;

td::before {
  display: none;

tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.25);

tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.5);

td:nth-of-type(2) {
  font-style: italic;

td:nth-of-type(3) {
  text-align: right;

div {
  overflow: auto;


              function AddTableARIA() {
  try {
    var allTables = document.querySelectorAll('table');
    for (var i = 0; i < allTables.length; i++) {
    var allRowGroups = document.querySelectorAll('thead, tbody, tfoot');
    for (var i = 0; i < allRowGroups.length; i++) {
    var allRows = document.querySelectorAll('tr');
    for (var i = 0; i < allRows.length; i++) {
    var allCells = document.querySelectorAll('td');
    for (var i = 0; i < allCells.length; i++) {
    var allHeaders = document.querySelectorAll('th');
    for (var i = 0; i < allHeaders.length; i++) {
    // this accounts for scoped row headers
    var allRowHeaders = document.querySelectorAll('th[scope=row]');
    for (var i = 0; i < allRowHeaders.length; i++) {
    // caption role not needed as it is not a real role and
    // browsers do not dump their own role with display block
  } catch (e) {
    console.log("AddTableARIA(): " + e);