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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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

Console