I\'d like to include a javascript file on every page of a site. I can do this with:
HTML
doesn't support self closing tags. If you want to use them you need to use an xml based doctype AND serve the file as xml.
XHTML or the xml serialisation of html5 would both work.
Here is an example:
XHTML5 Template
Save this in a file with a .xhtml
extension and open it in a modern browser and the self closing tag will work.