In my experience, that's harder to do than you might expect. Some years ago, I found some unmaintained software that worked for signing html. But I didn't find anything to verify signed pages. Just an old Firefox extension that no longer works.
Please do share if I've missed useful apps.
Don’t sign the html, sign the content and put it in a <pre> tag.