Most won’t do coding; testing and designing in website that is live for that reason you will work in your local computer (localhost) and implement it online once it is clear. There might be chance of forgetting your password in localhost as you won’t use it all the time like your live site. This post