Kids are usually very keen on imitation and learn most of the things they know by watching adults do them. When the kid sees you using the toilet, they will take notes and realize that this is the way they're supposed to relieve themselves.
Before you start teaching a kid about the basics of using a toilet, it's important they get some practice on the right equipment. Buy a child-sized potty that your toddler can use freely and feel more secure. This keeps them safe from the intimidation of falling in the toilet, which a lot of kids have.