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

              
                <head>
  <title class="title">The Search Marketer’s Guide to ItemRef & ItemID</title>
  <script type="application/ld+json">
  {
    "@context": "http://schema.org",
    "@type": "BlogPosting",
    "mainEntityOfPage":{
      "@type":"WebPage",
      "@id":"https://moz.com/blog/search-marketers-guide-to-itemref-itemid"
    },
    "headline": "The Search Marketer’s Guide to Itemref & Itemid",
    "image": {
      "@type": "ImageObject",
      "url": "https://d1avok0lzls2w.cloudfront.net/uploads/og_image/578003ea6f96e7.59106369.png",
      "height": 440,
      "width": 880
    },
    "datePublished": "2016-07-07T00:16:00-07:00",
    "dateModified": "2016-07-07T19:30:25-07:00",
    "author": {
      "@id": "http://www.mikearnesen.com/about#arnesen"
    },
     "publisher": {
      "@type": "Organization",
      "@id": "#mozOrg",
      "name": "Moz",
      "logo": {
        "@type": "ImageObject",
        "url": "https://d2eeipcrcdle6.cloudfront.net/brand-guide/logos/moz_blue.png",
        "width": 134,
        "height": 39
      },
      "url": "https://moz.org",
      "founder": {
     		"@id": "https://moz.com/rand/about/#rand"
        }
    },
    "description": "This post is about giving you a new tool to add to your semantic SEO tool belt. My goal is to help you implement semantic markup and structured data with greater ease and enable you to create a more robust and complete web of linked data on your website (and beyond).",
    "sourceOrganization": {
    	"@id": "http://www.upbuild.io/#upbuildOrg"
    },
    "copyrightHolder": {
    	"@id": "#mozOrg"
    },
    "wordCount": "3126"
  }
</script>
</head>
<!--Within the site's header, we have fully-formed Organization entity-->
<header itemid="#moz" itemscope itemtype="http://schema.org/organization">
  <meta itemprop="name" content="Moz" />
  <img itemprop="logo" src="https://d2eeipcrcdle6.cloudfront.net/brand-guide/logos/moz_blue.png" />
</header>

<!--Main Body of the post-->
<div itemscope itemtype="http://schema.org/blogPosting" itemref="comments author title">
  <img src="https://d1avok0lzls2w.cloudfront.net/uploads/og_image/578003ea6f96e7.59106369.png" itemprop="image">
  <h1 itemprop="headline">The Search Marketer’s Guide to ItemRef & ItemID</h1>
  <span>Published on
    <time itemprop="datePublished" datetime="2016-07-07">July 7th 2016</time>
    <meta itemprop="dateModified" content="2016-07-07T03:04" />
  </span>
  <link itemprop="publisher" href="#moz" />
  <h3>Preface</h3>
  <p itemprop="description">This post is going to give you a new tool to add to your semantic markup tool belt. My goal is to help you implement semantic markup and structured data with greater ease and to allow you to create a more robust and complete web of linked data on your
    websites (and beyond).</p>
  <div itemprop="articleBody">
    <h2>What are itemref and itemid?</h2>
    <p>Itemref and itemid are HTML attributes. They’re very similar to some other attributes that you’ll undoubtedly be familiar with if you’ve done work with semantic markup before...</p>
  </div>
</div>

<!--This data blob lives somewhere else on the page.-->
<div itemscope>
  Comments <sup itemprop="commentCount" id="comments">108</sup>
</div>

<!--Another data blob-->
<div itemscope>About <span itemprop="author" id="author">Mike Arnesen</span> - Mike is the Founder & CEO at UpBuild.</div>
              
            
!

CSS

              
                body {
  font-family: "Roboto";
  line-height:24px;
}

              
            
!

JS

              
                
              
            
!
999px

Console