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 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.

            
              <div class="reveal">

  <!-- Any section element inside of this container is displayed as a slide -->
  <div class="slides">
    <section>
      <h1>Headers in HTML</h1>
      <h3>Everything you didn't know about Headers</h3>
      <p>
        <small>As presented by Josh Fabean / <a href="https://twitter.com/joshfabean">@joshfabean</a></small>
      </p>
    </section>

    <section>
      <section>
        <h2>Is there actually anything I don't know about headers?</h2>
        <p>
          Honestly, I learned a little bit by reading the docs, so yes?
        </p>
      </section>
    </section>

    <!-- Example of nested vertical slides -->
    <section>
      <section data-background="https://media.giphy.com/media/8w7efnu1zAaoo/giphy.gif">
        <h2>Tags have meaning</h2>
        <p>h1,h2,h3,h4,h5,h6</p>
      </section>
      <section>
        <h2>h1</h2>
        <p>
          This should only be used once per page and should be the title defining what that page is about.
        </p>
      </section>
      <section>
        <h2>h2</h2>
        <p>
          This is each immediate sub-section of the page directly under the h1 in importance.
        </p>
      </section>
      <section>
        <h2>h3,h4,h5,h6</h2>
        <p>
          Same as h2, but they're each under the one above them.
        </p>
      </section>
    </section>

    <section>
      <section>
        <h2>Don't skip your headers</h2>
        <p>
          Turns out you're not supposed to skip any tags, you don't just define an h1 then a h3, you <i>need</i> an h2 first.
        </p>
      </section>
      <section>
        <h2>Also don't pick your headers based on size</h2>
        <p>Just because it's small doesn't mean it's an h5</p>
        <p>Idealy the designer would design it in a way that what is a small header is an h4 or h5 but you can't trust those people</p>
      </section>
      
    </section>

    <section>
      <section>
        <h2>Now to what really made it click for me</h2>
        <img src="https://media.giphy.com/media/oRbpW4HKSpy3C/giphy.gif" />
      </section>
      <section>
        <h2>Go back to a simpler time when the internet was a baby</h2>
        <p>
          It was used for papers and notes
        </p>
      </section>
      <section data-background="https://media.giphy.com/media/IPiNQ3YEoNOMw/giphy.gif">
        <h2>Keep with me</h2>
        <p>
          When you write notes and there are different sections how do you handle that?
        </p>
        <p>
          With different sectinon titles as points on a list.
        </p>
      </section>
    </section>

    <section>
      <section>
        <h2>Still not following?</h2>
        <p>
          I'll just show you what MDN has, that worked for me.
        </p>
      </section>
      <section>
        <p>
          <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/15439/Screenshot_2016-05-06_08.12.54.png" />
        </p>
      </section>
    </section>

    <section>
      <h2>That's all!</h2>
      <p>
        Hopefully you're now smarter.
      </p>
    </section>

  </div>

</div>
            
          
!
            
              var link = document.createElement( 'link' );
			link.rel = 'stylesheet';
			link.type = 'text/css';
			link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
			document.getElementsByTagName( 'head' )[0].appendChild( link );


Reveal.initialize({
				controls: true,
				progress: true,
				history: true,
				center: true,

				transition: 'slide', // none/fade/slide/convex/concave/zoom

				// Optional reveal.js plugins
			});
            
          
!
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