Skip to content
PHP Ecosystem
Explore

VoidInterface

API reference › HTML Contracts › Element › VoidInterface

interfaceUIAwesome\Html\Contracts\Element\VoidInterface
ExtendsUIAwesome\Html\Contracts\RenderableInterface
Sourcesrc/Element/VoidInterface.php
Implemented by 1 type

Defines a contract for renderable HTML elements that represent void (self-closing) elements.

In this library, “Void” refers to elements that do not have separate opening and closing tags, not HTML’s standard void element categories.

See also: https://developer.mozilla.org/en-US/docs/Glossary/Void_element.

MethodDescriptionDefined by
render() abstractRenders the object as an HTML string.UIAwesome\Html\Contracts\RenderableInterface