How Switch Mode Power Supply Regulates its Output

In linear power supply design output regulation is not a question because it is easily done by the linear regulator inserted before the load. Nowadays linear power supply is not anymore widely used. What is drawing more attention now is the switch mode power supply. How switch mode power supply regulates its output is different from what linear regulator does.