An HTML5 reference document can be found here:
One for CSS3 can be found here:
Authoritative standards for either mostly don’t exist, as HTML / CSS is not one thing implemented in one place, but rather implemented completely separately in every client that consumes them. The best you can do are guidelines. You won’t find one document that will tell you how to do it ‘perfectly’.