OK, it’s probably pretty easy when you are writing the code by hand, but I have now ensured that all pages of the site, except for those where I have deliberately screwed things up as part of an experiment, are W3C-compliant.
This is something that I intend to maintain. How hard can it be?