How do you use a anvil in Minecraft?

How do you use a anvil in Minecraft?
Steps to Enchant an Item with an Anvil

Place the Anvil. Once you have the required materials, add the anvil to your hotbar so that it is an item that you can use.
Use the Anvil. To use the anvil, you need to stand in front of it.
Enchant the Item.
Move the Enchanted Item to Inventory.

Steps to Enchant an Item with an Anvil
  1. Place the Anvil. Once you have the required materials, add the anvil to your hotbar so that it is an item that you can use.
  2. Use the Anvil. To use the anvil, you need to stand in front of it.
  3. Enchant the Item.
  4. Move the Enchanted Item to Inventory.