How to open html file using command

how to open html and css file on vscode and browser using command in terminal

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0.

Challenge: Build a Technical Documentation Page

Link to the challenge:


If you want to a HTML file from the terminal and, depending on your OS and the browsers you have installed, you may be able to run this: firefox index.html, assuming the file index.html exists. Replace firefox with any other browser installed.

1 Like

To open a file named index.html in VSCode, you can type code index.html

To create a new file named index.html in VSCode, you can also use code index.html

To open a folder in VSCode, go into the folder and type code . (this is a dot)


thankyou @skaparate i have been using firefox,

1 Like

thanks for your suggestion @miku86

1 Like