The DOCTYPE tag should be automatically added to your page if you generated it using Dreamweaver. If it is not there, you can add it using either method you described.
Can you send me a link to your page so I can see the behavior you're describing?
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.