Web Designer Wall people has writen a post titled Coding Clean and Semantic Templates that basically gives some advices on how to write proper HTML code for templates.
Briefly, the list of advices that they give are:
Minimize the use of <div>
Use the <div> tag only for the layout: header, content, sidebar, and footer
Use semantic HTML for [...]
Español