SPHPlayground API
SPHPlayground
sphplayground sphplayground

Meta Data and JavaScript

This section illustrates implementations an usage of HTML meta elements and Client Side Scripting components.

HTML metadata

The <head> is implemented by the Head class. The <head> contains information such as the page <title>, links to external resources, and other metadata (data that describes the document).

The following list describe HTML meta data components:

Key Tags Inside the Head - <head>

Meta data can be described also in a PHP array or an YAML file. SPHPlayground is capable to transform this data to an HTML head component,

Links

The <link> HTML element specifies relationships between the current document and an external resource. A <link> element can occur either in the <head> or <body> element, depending on whether it has a link type that is body-ok.[3]

The body-ok keywords are Rel::DnsPrefetch, modulepreload, pingback, preconnect, Rel::Prefetch, Rel::Preload, and stylesheet.

All HTML links implement LinkInterface interface. And as mentioned above the Rel defines the relationship between the current document and an external resource.

About Rel -relationships:

Performance & Loading (Resource Hints)

SEO & Document Metadata

These help search engines like Google understand your site structure.

Asset & Visual Presentation

Security & Social

The Open Graph protocol

The Open Graph protocol enables any web page to become a rich object in a social graph. For instance, this is used on Facebook to allow any web page to have the same functionality as any other object on Facebook.