Original: Before an item of legislation becomes law it may be known as a bill, and may be broadly referred to as "legislation" while it remains under consideration to distinguish it from other business.
Simplified: However, there are situations where legislation is enacted by other means (most commonly when constitutional law is enacted).