From the first day I started to learn Japanese, I saw people use hiragana to help read kanji, they are usually written on the top of those kanjis.
But recently I also saw some Japanese use katakana, to not only spell and mimic the sound of the foreign words, but also write them on the top of kanji to aid in their reading, instead of hiragana.
Is this also okay or common practice? Are there any differences, or does it not matter?