Both the green part and the white bulb are edible.  The green part is milder in taste and is an excellent ingredient in salads and for dressing. The white bulb may be sharper in taste like onion and used in cooking.