<img src="myimage.png" alt="This image ends with a short tag" />
On the whole, this technique was introduced into XHTML to solve the problem of the elements such as img or br in the body or the meta tags in the head of the document, which have no closing tag in the HTML specification. By using a short tag, you have valid XML.
Be careful though, as attempting to use a short tag script tag will lead to trouble. So you can’t do this:
<script src="myscript.js" />
The use of the short tag closing the script tag results in trouble in many browsers, so make sure you add a full closing tag instead, link this: