How to create a refresh button in Html

 Sometimes, we want to create a button that refreshs when clicked. For example, when you type a wrong website url in chrome, a reload button appears that refreshs the page when clicked. To test it, click http://nsbnshdjhdhjsjs.in/ (This website will open in new tab) 



How to create a button like this? Well you can create it using html. The code is:

<button onclick="window.location.reload();">Refresh Page</button>

The preview is