Skip to content

Instantly share code, notes, and snippets.

@imelgrat
Last active February 15, 2019 01:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imelgrat/472fbc4478e3bb0c2e92a9fc686cf37a to your computer and use it in GitHub Desktop.
Save imelgrat/472fbc4478e3bb0c2e92a9fc686cf37a to your computer and use it in GitHub Desktop.
<?php
/**
* Simple example showing how to tag a blog post using RDFa (Resource Description Framework)
*
* @link https://imelgrat.me/json-xml/structured-data-google-recipes-jobs/
*/
?>
<div vocab="http://schema.org/" typeof="Article">
<div> <span property="name">Structured Data: Helping Google find recipes and jobs</span> by <span property="author">Ivan Melgrati</span></div>
<div property="datePublished" content="2018-02-01">Published on Feb 1, 2018</div>
<div property="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