How to fix Boot Device Not Found Hard disk error (3F0) in HP Pavilion Windows 10 Laptop

I have installed Windows 10 in my Laptop. But when i switch on Laptop, Nothing starts loading, instead screen showing the following message,
Boot Device Not Found
Please Install an operating system on your hard disk
Hard Disk (3F0)
F2 System Diagnostics
For more information, please visit:
Solution: Go to BIOS Setup system configuration settings and enable Legacy Support.
Note:When i insert Windows 7 installation DVD, The selected boot device failed message is showing –