Interface HeadElement

All Known Implementing Classes:
Base, CssLink, JavaScript, JsonLdScript, Link, Meta, NoScript, Script, Style, Template, Title

public interface HeadElement
Marker interface for elements that are valid children of the <head> element.

The HTML specification restricts <head> content to metadata elements: <title>, <base>, <link>, <meta>, <style>, <script>, <noscript>, and <template>.

This interface enables

invalid reference
Head#addElement(HeadElement)
to accept any valid head child via a single typed overload, enforcing the content model at compile time.

Since:
2026
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also: