Detailed Explanation with Diagrams
A function is called one-one if different elements of domain map to different elements of codomain. No two inputs share the same output.
Example: f(x) = x + 1
A function where two or more inputs map to the same output. This is allowed in functions.
Example: f(x) = x²
A function is onto if every element of codomain has at least one pre-image in domain.
Example: f(x) = x³ (R → R)
A function is into if at least one element of codomain has no pre-image.
Example: f(x) = x² (R → R)