Profile: html-block

Profile Schema

An html-block document contains a freeform block of HTML.

The html-block profile is intended to be used as a “type” profile.

Structure

html-block documents must contain an html attribute, containing freeform HTML content. It may optionally contain a title attribute.

Example html-block document

{
  "id": "12345",
  "profiles": [
    {
      "href": "/v1/profiles/html-block",
      "rels": [
        "type"
      ]
    },
    {
      "href": "/v1/profiles/document"
    }
  ],

  "title": "Map: How is the vaccination effort going in your state?",
  "html": "<script src=\"https://npr-js-host.org/vaccine-map.js\" />"
}

© 2024 npr