You can even press ALT+F4 = On your desktop and you will get different options and choose shutdown.
Nowhere in this article, I will show you such an amazing trick to shut down your computer.
Here the action,
When you hit your laptop LID fold or slide (close) your computer may get your computer shut down.
This is really awesome feature.
Step1: Access your control panel or you can even click on battery and go for more power options.
Step2: Inside control panel you can go fro Power Options.
Step3: Now you can click on Choose what closing the lid does.
Step4: You can find "When I close the lid:" section and there you have to choose the option shut down on both on power and on battery.
Step5: Save changes: Now close your LID.