You also have the option of an IDE applications.
Dreamweaver is a WYSIWYG editor, which is notorious for auto-generating code (which is sometimes useful, and sometimes not).
Notepad-like applications (such as the ever-popular notepad++) offer the ability to hand-code, but are limited when it comes to code completion and library definition look-ups that a fully-fledged code editor offers.
So, there is a third group--IDE programs. They tend to offer code completion and library definition look-ups, but doesn't include aggressive code generation like WYSIWYG editors have.