+ 3

[SOLVED] How do I open a HTML file in a browser?

17th May 2017, 12:20 AM
KingCodesalot
KingCodesalot - avatar
40 Answers
+ 18
Click two time on the .html file, it will be automatically opens in the browser. In alternative you can drag your file in the browser manually, maybe you already know how to drag&drop an element with your mouse. @Tiago, type the whole URL path in the URL bar? Maybe it's a little bit hard ^^
17th May 2017, 12:35 AM
Maz
Maz - avatar
+ 11
double click on html file..then it will be open..
20th May 2017, 7:27 PM
Gregor Duff
Gregor Duff - avatar
+ 6
double click on .html file and it will be automatically opened.
18th May 2017, 6:38 AM
Ramanpreet Singh
Ramanpreet Singh - avatar
+ 4
double click on the file
17th May 2017, 6:20 AM
NimWing Yuan
NimWing Yuan - avatar
+ 4
Firstly save your html file by going to file menu and then save as option, And give a name to your file like basic.html and click OK. After that close the html file and you will see your file in browser named basic
22nd May 2017, 3:44 PM
Shaswat Singh
Shaswat Singh - avatar
+ 3
Right click > Open with > Your preferred browser
17th May 2017, 3:32 AM
Joseph P French
Joseph P French - avatar
+ 3
If you are using text editor notepad++ , its v simple to open the file in browser. On the top menu there is an icon (run) with diff options. Chrome,Mozila etc. You can run directly from here in any browser. (((((Sorry for my bad Eng))))) 😰😰
18th May 2017, 6:26 PM
Adil Balti
Adil Balti - avatar
+ 2
in address string - file://path_to_your_html
17th May 2017, 5:23 AM
shaldem
shaldem - avatar
+ 2
In case you wanna know for Android (Chrome) - Type this in browser search bar - File:/// Copy the path of the file and put it after like this Fill:///path of the file eg - File:///projects/web/index.html
18th May 2017, 4:21 AM
Utkαrsh
Utkαrsh - avatar
+ 1
Double click on the HTML file or use XAMPP
19th May 2017, 9:59 AM
Retul
Retul - avatar
+ 1
double click it or open it with web browser you want
23rd May 2017, 4:15 AM
Nimo Bidhiidh
Nimo Bidhiidh - avatar
0
Just type the path of your html file at the address bar of your browser
17th May 2017, 12:32 AM
Tiago Soares
Tiago Soares - avatar
0
Or...If you are trying to open a page using JS, you can use window.open ()
17th May 2017, 12:36 AM
Tiago Soares
Tiago Soares - avatar
0
In Notepad++ click Run and then Launch in Chrome
18th May 2017, 10:26 AM
Iwan
Iwan - avatar
0
I'm shocked that you're asking this question, but you know how to visit sololearn.
18th May 2017, 4:16 PM
Mike
Mike - avatar
0
double click html code file
19th May 2017, 12:54 PM
Muhammad Mustafa Mustafa
Muhammad Mustafa Mustafa - avatar
0
save the file with (.html) prefix and then open it
21st May 2017, 5:12 PM
HasibUllah
HasibUllah - avatar
0
Save Notepad file. Use Extension html or open with browser
22nd May 2017, 7:50 PM
Inshal Khan
Inshal Khan - avatar
0
just double click on the.html file
27th Oct 2017, 2:30 PM
Harsh Garg
Harsh Garg - avatar
- 1
is the file saved as .html which os are u on?
17th May 2017, 12:32 AM
FOXES ARE SICK6969