If you want to switch to using self-closing tags like <img /> and <br /> in certain projects, change the shell variable TM_XHTML for that project to ” /”.
Click here:

Enter this:

The default behavior for TextMate is to use HTML 4, so you don’t have to do anything extra for those projects.