The common onion or bulb onion has several different types: yellow or brown onions, red onions, white onions, shallots and potato onions.
Leek, garlic, chives, Welsh onion, sand leek, etc. are separate species.
All Allium species and all parts of the plant are edible, though some species of parts may not taste nice.