Setup Web Server Run the following below in the folder with the html file. You can change port from 8080. python -m http.server --bind localhost 8080 Then put in the below link in web browser with the name of the target html file. http://localhost:8080/index.html