To name your cat, you'll need a name tag and an anvil. Place the anvil down and use it. Next, you'll see a repair and name menu. Place the name tag in the first slot and enter a name in the brown box. Finally, place the name tag on your cat.