You probably need to get away from WYSIWIG html editing , and start to hand code HTML.
Learning PHP would help too , and this can automate dramatically the generation of entire webpages - quite complex ones too. In fact, this entire bulletin board is generated by PHP.
My favourite editor is Kate , although I hear that the latest KDevelop is pretty cool at handling PHP code.
Nothing beats hand coding - you learn a heck of a lot doing it that way.And if you throw in PHP, you can get PHP to auto-generate most of the HTML for you.
Now having said all of the above, there is one tool you should check out , and it rocks -
Mambo Open Server.
It's a PHP app that allows you to generate entire websites via a templating system.
More on it here:
Mambo Server