This question already has an answer here:
My hard drive in my Macbook completely broke a few weeks ago (didn't have much on it thankfully), so I bought a new hard drive and replaced the old one.
Now I'm not too sure how to set this new hard drive up (as in putting an OS on it and formatting it correctly) - I'm not concerned with getting any of my old data back on it, I just want to set it up as a new Macbook. Similar questions I have found all seem to ask how to set it up with all the old data. How do I boot the system up (safe boot, recovery etc.)? and what do I need to do once it's booted up?
Any help is much appreciated.