Closing Tags in XHTML

In XHTML, one of the most basic differences between XHTML and HTML is that you have to close every HTML tag you open. For example <b> needs a </b> and every <div> needs a </div>. This is the same rule for all HTML tags. Some tags, however, require whats called a “close-command slash” at the end of the tag to close it. For example…

To close a <br> tag, you write it this way:<br />

To close an <img> tag, you write it this way:<img src=”image.jpg” alt=”My Image” />