diff --git a/app/class-element.php b/app/class-element.php
index <HASH>..<HASH> 100644
--- a/app/class-element.php
+++ b/app/class-element.php
@@ -52,6 +52,33 @@ class Element {
         public $attr = null;
 
         /**
+         * Array of self-closing tags (i.e., void elements) that have
+         * no content.
+         *
+         * @since  5.0.0
+         * @access protected
+         * @var    array
+         */
+        protected $self_closing = [
+                'base',
+                'br',
+                'col',
+                'command',
+                'embed',
+                'hr',
+                'img',
+                'input',
+                'keygen',
+                'link',
+                'menuitem',
+                'meta',
+                'param',
+                'source',
+                'track',
+                'wbr'
+        ];
+
+        /**
          * Set up the object.
          *
          * @since  5.0.0
@@ -79,6 +106,11 @@ class Element {
 
                 $attr = $this->attr instanceof Attributes ? $this->attr->fetch() : '';
 
+                if ( in_array( $this->tag, $this->self_closing ) ) {
+
+                        return sprintf( '<%1$s %2$s />', tag_escape( $this->tag ), $attr );
+                }
+
                 return sprintf(
                         '<%1$s %2$s>%3$s</%1$s>',
                         tag_escape( $this->tag ),
Add support for self-closing tags to the `Element` class.