Pen Settings



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


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


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.


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.


                <h1>Video Sample Page</h1>

<p>This is the video we will work with. It uses a movie from the Blender Foundation (thanks :) )</p>
<div id="container">
  <video id='video' controls="controls" preload='none' width="600" poster="">
    <source id='mp4' src="" type='video/mp4' />
    <source id='webm' src="" type='video/webm' />
    <source id='ogv' src="" type='video/ogg' />
          Track to be used for accessibility using the VTT standard. 

          See for more information on how to use text tracks
    <track kind="subtitles" label="English subtitles" src="subtitles_en.vtt" srclang="en" default>
        We can also add more than one text track and let the user choose which one to play. There is now way to 
        currently do this with the built in controls so it'll have to be scripted -->
    <track kind="subtitles" label="Deutsche Untertitel" src="subtitles_de.vtt" srclang="de">

          We're not using Flash as a fallback option.
    <p>Your user agent does not support the HTML5 Video element.</p>
</div> <!-- End Container -->


                @import url(",400i,700,700i&display=swap");

body {
  padding: 2em;
  font-family: Raleway, sans-serif;
  font-size: 1.2em;

h1 {
  font-size: 3.6em;
  margin-bottom: 0.5em;
h2 {
  font-size: 2.4em;
  margin-bottom: 0.5em;

p {
  margin: 1em 0;
  line-height: 1.25;