The W3C validator doesn't like self-closing tags (those that end with "/>
") on non-void elements. (Void elements are those that may not ever contain any content.) Are they still valid in HTML5?
Some examples of accepted void elements:
![]()
Some examples of rejected non-void elements: