HTML - Data Block

About

data block 1) are a way to embed data in a html document.

Example

The well known is ld-json data block

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "url": "http://www.example.com",
  "name": "Unlimited Ball Bearings Corp.",
  "contactPoint": {
    "@type": "ContactPoint",
    "telephone": "+1-401-555-1212",
    "contactType": "Customer service"
  }
}
</script>

Syntax

They are scripting element where the type attribute is set to a value that is not

  • empty
  • a known script mime (such as Javascript)
  • module (ie a module

Documentation / Reference


Powered by ComboStrap