Is it possible to create a button that is the child of an text?
The correct answer is that the input
tag is a void element that cannot have any children. Inline elements such as span can have children.
Void elements only have a start tag; end tags must not be specified for void elements.
i.e. in HTML5 there can never be a closing tag for an i.e. don't use . HTML5 is not XML and it strongly discourages self-closing tags (
/>
) i.e. is not strictly correct HTML5 (although it will work for compatibility purposes). The list of void element tags defined in HTML5 are:
area, base, br, col, embed, hr, img, input, keygen, link, meta, param, source, track, wbr
.