Fixing validation errors

Assorted corrections that the W3C validator pointed out.