Which is better or more convenient to use:
or
You need to use unless you're using html5. In that case you are encouraged to prefer (because type attribute is specified by default to that value)