Skip to content

Instantly share code, notes, and snippets.

@imelgrat
Last active February 15, 2019 02:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imelgrat/1878bb22bc78da911d6e2471d8095459 to your computer and use it in GitHub Desktop.
Save imelgrat/1878bb22bc78da911d6e2471d8095459 to your computer and use it in GitHub Desktop.
Simple example showing how to tag a blog post using Microdata following some of Schema.org’s properties used to define an “Article”.
<?php
/**
* Simple example showing how to tag a blog post using Microdata
* following some of Schema.org’s properties used to define an “Article”.
*
* @link https://imelgrat.me/json-xml/structured-data-google-recipes-jobs/
*/
?>
<div itemscope itemtype="http://schema.org/Article">
<div>
<span itemprop="name">Structured Data: Helping Google find recipes and jobs</span>
by <span itemprop="author">Ivan Melgrati</span>
</div>
<div itemprop="datePublished" content="2018-02-01">Published on Feb 1, 2018</div>
<div itemprop="description">This article is about structured data</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment