Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

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

Packages

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.

Behavior

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.

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.

HTML

              
                <body itemscope itemtype="http://schema.org/WebPage">
  <aside itemid="#tickets" itemscope itemtype="http://schema.org/Offer">Last Minute Tickets for
    <meta itemprop="priceCurrency" content="USD">$<span itemprop="price">749.00</span>. <a href="https://www.sempdx.org/searchfest/tickets/" itemprop="url">Buy now!</a>
  </aside>
  <div itemscope itemtype="http://schema.org/Event">
    <h1 itemprop="name">SearchFest</h1>
    <div>Hosted by SEMpdx
      <link itemprop="organizer" href="#organizer" />
    </div>
    <p itemprop="description">SearchFest presents multiple informative learning tracks, workshops, and panel sessions designed to provide direct insight into the most up-to-date strategies and technological advancements in online search marketing and social marketing. Industry
      experts and thought leaders from around the country deliver in-depth presentations ranging from basic SEM and social media fundamentals to specific advanced techniques.</p>
    <h2>Where</h2>
    <div itemprop="location" itemscope itemtype="http://schema.org/Place">
      <h4 itemprop="name">The Sentinel Hotel</h4>
      <span itemprop="address" itemscope itemtype="http://schema.org/postalAddress">
        <span itemprop="addressLocality">Portland</span>, <span itemprop="addressRegion">OR</span>
      </span>
    </div>
    <h2>When</h2> March 11th at 8am
    <meta itemprop="startDate" content="2016-03-011T09:00" />
    <p>Limited number of tickets left!
      <link itemprop="offers" href="#tickets" />
    </p>
  </div>
  <footer itemscope itemtype="http://schema.org/Organization" itemid="#organizer" itemref="email">
    <span itemprop="name">SEMpdx</span> is Portland, Oregon. Our vision is to build national credibility for Portland as a hub for the search engine marketing industry.
    <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
      <h4>Contact Us</h4>
      <span itemprop="postOfficeBoxNumber">PO Box 83</span>
      <span itmeprop="addressLocality">Portland</span>, <span itemprop="addressRegion">OR</span> <span itemprop="postalCode">97207</span>
      <span itemscope>
      <div id="email" itemprop="email" >info2015@SEMpdx.org</div>
    </span>
    </div>
  </footer>
</body>
              
            
!

CSS

              
                body {
  font-family: 'Roboto';
  padding: 10px 20px;
  margin-bottom: 100px;
  width: 900px;
}
aside {
  display:block;
  background: blue;
  color: #ffffff;
  padding: 6px;
}
aside a {
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 20px;
  padding: 0px 10px;
}

h1, h2, h3, h4 {
  margin-bottom: 6px;
}

h4 {
  margin-top: 4px;
}
footer {
  position: fixed;
  bottom: 0; 
  left: 0;
  border: 1px black solid;
  padding: 4px;
  margin: 4px;
  background-color: #cccccc;
}
              
            
!

JS

              
                <script type = "application/ld+json" > {
    "@context": "http://schema.org",
    "@type": "Event",
    "name": "SearchFest",
    "startDate": "2016-03-10T08:30",
    "url": "http://www.searchfest.com",
    "location": {
      "@type": "Place",
      "sameAs": "http://www.sentinelhotel.com",
      "name": "The Sentinel",
      "address": {
        "@type": "PostalAddress",
        "streetAddress": "614 Southwest 11th Ave",
        "addressLocality": "Portland",
        "addressRegion": "OR",
        "postalCode": "97205"
      }
    },
    "description": "SearchFest presents multiple informative learning tracks, workshops, and panel sessions designed to provide direct insight into the most up-to-date strategies and technological advancements in online search marketing and social marketing.",
    "offers": {
      "@type": "Offer",
      "price": "749.00",
      "priceCurrency": "USD",
      "url": "https://www.sempdx.org/searchfest/tickets/"
    },
    "organizer": {
      "@id": "#organizer"
    }
  } 
 </script> 

 <script type = "application/ld+json" > {
    "@context": "http://schema.org",
    "@type": "Organization",
    "@id": "#organizer",
    "name": "SEMpdx",
    "description": "SEMpdx is Portland, Oregon. Our vision is to build national credibility for Portland as a hub for the search engine marketing industry.",
    "url": "http://www.sempdx.org"
  } 
   </script>
              
            
!
999px

Console