They are called prepositions. They are used to indicate the position of a noun. Example:- If you keep your phone at the top of your table, you can simply say that "it is on the table", but if you keep it inside your briefcase or handbag, then you can say that your phone is in your bag