css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

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.

            
              <table id="planets-classification">
	<caption>Planet's classification</caption>
	<thead>
		<tr>
			<th>Name</th>
			<th>Class</th>
			<th>Age</th>
			<th>Diameter</th>
			<th>Planets & dwarf planets</th>
			<th>Known moons</th>
			<th>Orbit distance</th>
			<th>Orbit period</th>
			<th>Surface temperature</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<th>Sun</th>
			<td>Star</td>
			<td>~4.6 billion years</td>
			<td>1 392 684 km</td>
			<td>13</td>
			<td colspan="3"><em>N/A</em></td>
			<td>5500° C</td>
		</tr>
		<tr>
			<th>Mercury</th>
			<td>Planet</td>
			<td><em>unknown</em></td>
			<td>4 879 km</td>
			<td rowspan="13"><em>N/A</em></td>
			<td>0</td>
			<td>57.9 million km</td>
			<td>88.0 days</td>
			<td>427°C</td>
		</tr>
		<tr>
			<th>Venus</th>
			<td>Planet</td>
			<td><em>unknown</em></td>
			<td>12 104 km</td>
			<td>0</td>
			<td>108.2 million km</td>
			<td>224.7 days</td>
			<td>462°C</td>
		</tr>
		<tr>
			<th>Earth</th>
			<td>Planet</td>
			<td>4.543 billion years</td>
			<td>12 756 km</td>
			<td>1</td>
			<td>149.6 million km</td>
			<td>365.2 days</td>
			<td>-88°C to 58°C</td>
		</tr>
		<tr>
			<th>Mars</th>
			<td>Planet</td>
			<td>4.603 billion years</td>
			<td>6 805 km</td>
			<td>2</td>
			<td>227.9 million km</td>
			<td>1.9 years</td>
			<td>-63°C</td>
		</tr>
		<tr>
			<th>Ceres</th>
			<td>Dwarf planet</td>
			<td><em>unknown</em></td>
			<td>950 km</td>
			<td>0</td>
			<td>413.7 million km</td>
			<td>4.6 years</td>
			<td>-105°C</td>
		</tr>
		<tr>
			<th>Jupiter</th>
			<td>Planet</td>
			<td>4.503 billion years</td>
			<td>142 984 km</td>
			<td>67</td>
			<td>778.3 million km</td>
			<td>11.9 years</td>
			<td>-108°C</td>
		</tr>
		<tr>
			<th>Saturn</th>
			<td>Planet</td>
			<td>4.503 billion years</td>
			<td>120 536 km</td>
			<td>62</td>
			<td>1.4 billion km</td>
			<td>29.5 years</td>
			<td>-139°C</td>
		</tr>
		<tr>
			<th>Uranus</th>
			<td>Planet</td>
			<td>4.503 billion years</td>
			<td>51 108 km</td>
			<td>62</td>
			<td>2.9 billion km</td>
			<td>84 years</td>
			<td>-197°C</td>
		</tr>
		<tr>
			<th>Netpune</th>
			<td>Planet</td>
			<td>4.503 billion years</td>
			<td>49 528 km</td>
			<td>14</td>
			<td>4.5 billion km</td>
			<td>164.8 years</td>
			<td>-201°C</td>
		</tr>
		<tr>
			<th>Pluto</th>
			<td>Dwarf planet</td>
			<td><em>unknown</em></td>
			<td>2 306 km</td>
			<td>5</td>
			<td>5.8 billion km</td>
			<td>246.0 years</td>
			<td>-229°C</td>
		</tr>
		<tr>
			<th>Haumer</th>
			<td>Dwarf planet</td>
			<td><em>unknown</em></td>
			<td>1 632 km</td>
			<td>2</td>
			<td>6.4 billion km</td>
			<td>283.3 years</td>
			<td>-241°C</td>
		</tr>
		<tr>
			<th>Makemake</th>
			<td>Dwarf planet</td>
			<td><em>unknown</em></td>
			<td>1434 km</td>
			<td>0</td>
			<td>6.9 billion km</td>
			<td>309.9 years</td>
			<td>-239°C</td>
		</tr>
		<tr>
			<th>Eris</th>
			<td>Dwarf planet</td>
			<td><em>unknown</em></td>
			<td>2326 km</td>
			<td>1</td>
			<td>10.1 billion km</td>
			<td>560.9 years</td>
			<td>-231°C</td>
		</tr>
	</tbody>
</table>
            
          
!
            
              body {
	padding: 14px;
	font-family: arial, sans-serif;
}
table,
th,
td {
	border: 1px solid black;
}
th,
td {
	padding: 5px 7px;
	vertical-align: middle;
	text-align: center;
	white-space: nowrap;
}
th {
	font-weight: 600;
}
thead th {
	background: #666;
	color: white;
}
tbody tr:nth-child(even) >  * {
	background: rgba(0,0,0,.1);
}
em {
	font-style: italic;
}
            
          
!
            
              flexT("planets-classification", columns = [2,4], "99999", debug = false);
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console