There are 2 ways for opening .html files in Google chrome.
Way 1 :
Right click on the .html file and select open with Google chrome.
Way 2 :
- Open Google Chrome
- Press ctrl + o
- A window opens
- Navigate to your destination folder and click on your .html file
That's it. There you go.
Hope This is helpful.
Answer from Areg Nikoghosyan on Stack OverflowThere are 2 ways for opening .html files in Google chrome.
Way 1 :
Right click on the .html file and select open with Google chrome.
Way 2 :
- Open Google Chrome
- Press ctrl + o
- A window opens
- Navigate to your destination folder and click on your .html file
That's it. There you go.
Hope This is helpful.
Just paste the path of the html file including the .html to the browser. Eg, c://Desktop/user/project/file.html -> paste on url
Videos
Total beginner here, when I create an HTML document (on NotePad) and then save it on my desktop, its icon switches automatically to a Chrome icon, which can only be opened as the Web page and not the code, or at least that is what I am observing. Can anyone show me how to reopen the page code ?
I use Mac and not familiar with Vscode I want to open some html file in Chrome so far I try two methods :
First , click Run and Debug, html opens to safari which i dont want that . Second , I choose launch Chrome selection in nav bar , it launchs Chrome page but itโs an error page.
After thet I open html by using terminal by using open command : open index.html the files opens in safari
How can I fix that ? Thanks in advance .
Didn't help.
Hi codeispoetry,
See if changing the defaults to Firefox and then reverting to Chrome helps.
Right-click on a HTML file and click Properties.
Click "Change"
Select Firefox, and click "Set default.
Right-click on a HTML file and click Properties.
Click "Change"
Select Google Chrome, and click "Set default.