HTML Tags which should not be closed in HTML5
In HTML5 Void element doesn’t require closing tags.
What are the Void Elements?
A Void element is an element that can not allow to have any content in between the start and closing tags. Void elements only have a start tag; end tags must not be specified for void elements.
Void elements:
area, base, br, col, embed, hr, img, input, keygen, link, menuitem, meta, param, source, track, wbr
For example Input tag should be close >, it should not be />
Correct:
<input type="text" name="username">
Wrong:
<input type="text" name="username" />
Source:
http://www.w3.org/html/wg/drafts/html/master/syntax.html#void-elements
http://www.w3.org/html/wg/drafts/html/master/semantics.html#the-input-element
(Visited 231 times, 2 visits today)