How can the strength of a electromagnet can be controlled?

The strength of an electromagnet can be controlled by:

-- increasing or decreasing the current (amperes) flowing through the wire coil around the core;

-- increasing or decreasing the number of 'turns' of wire in the coil.