How To Teach A Kitten To Clean Itself?

How to teach a kitten to use the bathroom litter box?

How do I train my cat? How can I gain their trust so they will let me pet them? What are good ways to approach them before trying out different toys, treats, etc.?