🐇

【Web】How to preview a HTML file without building a server

2024/09/15に公開

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

  1. Install the Live Server on VSCode.

  2. Open a directory that includes an HTML file

  3. Click the Go Live
    After the file opens, the Go Live shows the right-bottom of VSCode, you can go to your HTML page when you click it.

  4. HTML Preview

2. Preview on VSCode

  1. Install the HTML Preview on VSCode.

  2. Preview from command
    Press the cmd + shift + P, and select HTML: Open Preview on the Side.

  3. HTML Preview

3. Summary

Both ways are useful. Please try it.

Discussion