Note: You are viewing the development version of Schema.org. See how we work for more details.

mainEntityOfPage

A Schema.org Property
Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See background notes for details.

Inverse-property: mainEntity


Values expected to be one of these types

Used on these types

Examples

Example 1
Copied
Example notes or example HTML without markup.
  1.      <div>
  2.       <h1>Cath's Cafe</h1>
  3.       <p>Open: Daily from 11:00am till 8pm</p>
  4.       <p>Phone: 555-0100-3344</p>
  5.       <p>View <a href="/menu">our menu</a>.</p>
  6.      </div>
Example encoded as Microdata embedded in HTML.
  1. <div itemscope itemtype="https://schema.org/Restaurant" itemid="#thecafe">
  2.     <a itemprop="mainEntityOfPage" href="http://cathscafe.example.com/"><h1 itemprop="name">Cath's Cafe</h1></a>
  3.     <p>Open: <span itemprop="openingHours" content="Mo,Tu,We,Th,Fr,Sa,Su 11:00-20:00">Daily from 11:00am till 8pm</span></p>
  4.     <p>Phone: <span itemprop="telephone" content="+155501003344">555-0100-3344</span></p>
  5.     <p>View <a itemprop="hasMenu" href="/menu">our menu</a>.</p>
  6. </div>
Example encoded as RDFa embedded in HTML.
  1. <div vocab="https://schema.org/" typeof="Restaurant" resource="#thecafe">
  2.     <a property="mainEntityOfPage" href="http://cathscafe.example.com/"><h1 property="name">Cath's Cafe</h1></a>
  3.     <p>Open: <span property="openingHours" content="Mo,Tu,We,Th,Fr,Sa,Su 11:00-20:00">Daily from 11:00am till 8pm</span></p>
  4.     <p>Phone: <span property="telephone" content="+155501003344">555-0100-3344</span></p>
  5.     <p>View <a property="hasMenu" href="/menu">our menu</a>.</p>
  6. </div>
Example encoded as JSON-LD in a HTML script tag.
  1. <script type="application/ld+json">
  2. {
  3.     "@context": "https://schema.org",
  4.       "@type": "Restaurant",
  5.       "mainEntityOfPage": "http://cathscafe.example.com/",
  6.       "name": "Cath's Cafe",
  7.       "openingHours": "Mo,Tu,We,Th,Fr,Sa,Su 11:00-20:00",
  8.       "telephone": "+155501003344",
  9.       "hasMenu": "/menu"
  10. }
  11. </script>
Structured representation of the JSON-LD example.