Re: html5 error 0

by vinaayaksingh » Tue Jan 24, 2023 5:19 pm

Browser blocks local file.
Assuming you have dev env setup
You can install very simple dev server & then access the html from browser via server.
Here are the steps:
1. Installing the Node.js http-server. Its simple. Open cmd prompt and type:
npm install http-server -g

Then go to the folder where your html file is there. open cmd prompt in that folder. and type command:
http-server . -p 8000

Now you can open http://127.0.0.1:8000/ and then from there open your html file.

Above is just one method. There are many such server available.