Why should some HTML5 tags have start and end tags instead of closing them with / ">?
HTML5 has tags that must have start and end tags, even if their contents are empty:
<script></script> <!-- Right way. -->
<div></div> <!-- Right way. -->
<content></content> <!-- Right way. -->
<script/> <!-- Wrong way. -->
<div/> <!-- Wrong way. -->
<content/> <!-- Wrong way. -->
In XML, this difference does not exist:
<node/>
and <node></node>
- it is one and the same entity.
Why type of tag script
, div
and content
can not simply be defined as follows:
<script/>
, <div/>
and <content/>
?