Have a look at SEO plugins like WordPress SEO or the all in one seo pack.
Once installed you can then insert title and meta tags.
As for updating the hmle and XHTML — you need to look at the theme for that and each theme will be different. Be careful though, because if you made changes to a theme template and then there’s a new update, you will lose all of your changes.