Tags like those are called "self-closing" tags. Any tag that can't contain other content (for example, an image, line break, horizontal rule, meta tag, etc.) must be self-closing.
In XML (and therefore XHTML), <foo></foo> and <foo /> are identical as far as the parser is concerned, but in reality, there are browser problems where you have to use one or the other. For example, you can't do <script type="text/javascript" src="foo. js" /> because most browsers don't properly detect the script tag as being closed.
|