schemaorg-coda :: Example

eg-0195

From v29.4

JSON-LD

{
  "@context": "https://schema.org",
  "@type": "Store",
  "name": "Delia's Daily Supplies",
  "description": "For your daily newspapers, candies, snacks and (via our in-store pharmacy) drugs and healthcare products to keep you and your family happy, healthy and supplied with all your daily needs.",
  "openingHours": "Mo-Fr 07:00-23:00",
  "telephone": "+155501001110",
  "department":
  {
    "@type": "Pharmacy",
    "name": "Philippa's Pharmacy",
    "description": "A superb collection of fine pharmaceuticals for your   beauty and healthcare needs, a department of Delia's Drugstore. Call our desk to speak to the on-duty pharmacist any morning Monday-Thursday.",
    "openingHours": "Mo-Th 09:00-12:00",
    "telephone": "+155501001111"
  }
}

RDFa

<div vocab="https://schema.org/" typeof="Store">
  <div>
      <h1 property="name">Delia's Daily Supplies</h1>
      <p property="description">For your daily newspapers, candies, snacks and (via our in-store pharmacy)
          drugs and healthcare products to keep you and your family happy, healthy and supplied with all your daily needs.</p>
      <p>Open: <span property="openingHours" content="Mo-Fr 07:00-23:00">Monday-Friday 7am-11pm</span></p>
      <p>Phone: <span property="telephone" content="+1 8005551234">800-555-1234</span></p>
  </div>

  <div property="department" typeof="Pharmacy">
      <h2 property="name">Philippa's Pharmacy</h2>
      <p property="description">A superb collection of fine pharmaceuticals for your beauty and healthcare needs,
          a department of Delia's Drugstore. Call our desk to speak to the on-duty pharmacist any morning Monday-Thursday.</p>
      <p>Open: <span property="openingHours" content="Mo-Th 09:00-12:00">Monday-Thursday 9am-noon</span></p>
      <p>Phone: <span property="telephone" content="+155501001111">555-0100-1111</span></p>
  </div>
</div>

Microdata

<div itemscope itemtype="https://schema.org/Store">
  <div>
    <h1 itemprop="name">Delia's Daily Supplies</h1>
    <p itemprop="description">For your daily newspapers, candies, snacks and (via our in-store pharmacy)
      drugs and healthcare products to keep you and your family happy, healthy and supplied with all your daily needs.</p>
    <p>Open: <span itemprop="openingHours" content="Mo-Fr 07:00-23:00">Monday-Friday 7am-11pm </span></p>
    <p>Phone: <span itemprop="telephone" content="+1 8005551234">800-555-1234</span></p>
  </div>

  <div itemprop="department" itemscope itemtype="https://schema.org/Pharmacy">
    <h2 itemprop="name">Philippa's Pharmacy</h2>
    <p itemprop="description">A superb collection of fine pharmaceuticals for your beauty and healthcare needs,
      a department of Delia's Drugstore. Call our desk to speak to the on-duty pharmacist any morning Monday-Thursday.</p>
    <p>Open: <span itemprop="openingHours" content="Mo-Th 09:00-12:00">Monday-Thursday 9am-noon</span></p>
    <p>Phone: <span itemprop="telephone" content="+155501001111">555-0100-1111</span></p>
  </div>
</div>

Pre-Markup

<div>
  <div>
    <h1>Delia's Daily Supplies</h1>
    <p>For your daily newspapers, candies, snacks and (via our in-store pharmacy)
      drugs and healthcare products to keep you and your family happy, healthy and supplied
       with all your daily needs.</p>
    <p>Open: Monday-Friday 7am-11pm</p>
    <p>Phone: 800-555-1234</p>
  </div>

  <div>
    <h2>Philippa's Pharmacy</h2>
    <p>A superb collection of fine pharmaceuticals for your beauty and healthcare needs,
      a department of Delia's Drugstore. Call our desk to speak to the on-duty
      pharmacist any morning Monday-Thursday.</p>
    <p>Open: Monday-Thursday 9am-noon</p>
    <p>Phone: 555-0100-1111</p>
  </div>
</div>