🐇
【Web】How to preview a HTML file without building a server
This time, I introduce the way to check the HTML file without building a server.
It is easy, let's start!
1. Preview on Browser
-
Install the Live Server on VSCode.
-
Open a directory that includes an HTML file
-
Click the
Go Live
After the file opens, theGo Live
shows the right-bottom of VSCode, you can go to your HTML page when you click it. -
HTML Preview
2. Preview on VSCode
-
Install the HTML Preview on VSCode.
-
Preview from command
Press thecmd + shift + P
, and selectHTML: Open Preview on the Side
. -
HTML Preview
3. Summary
Both ways are useful. Please try it.
Discussion