It's lazier to type in your own code than it is to jump through all of those hoops.
Get the book HTML for the World Wide Web, Visual Quick Start is the series, in whatever edition it is now. Peachpit Press. It has some great tips and the appendices in the back are very useful.