The isVoid() method checks if the current element is a void element, meaning it does not have a closing tag and is self-closed.
Description
public ElementNode::isVoid(): bool
Parameters
None
Return Value
Returns a bool: true if the element is a void element, and false otherwise.
Exceptions
None