- To Run a HTML File in XAMPP you need to put your HTML file inside the "htdocs" folder in XAMPP installation directory. - And then in your browser type "localhost/your-file-name.html". - now your file is opend into your browser using XAMPP.