codegurukool.com · Free coding tutorials & online compiler

Home › HTML Tutorial › HTML installation

HTML installation

Full step-by-step installation for Windows, macOS and Linux.

Step 1: Install a code editor

  1. Open code.visualstudio.com and click the Download button for your system.
  2. Windows: run the installer, accept the agreement and tick Add to PATH and Open with Code. macOS: open the downloaded zip and drag Visual Studio Code into the Applications folder. Linux: run sudo snap install code --classic or install the .deb file.
  3. Open VS Code once to make sure it starts.

Step 2: Create your first file

  1. Create a new folder, for example my-site.
  2. In VS Code choose File, then Open Folder, and select it.
  3. Create a new file named index.html.
  4. Paste the code from the editor below and save it (Ctrl+S, or Cmd+S on macOS).

Step 3: Open it in the browser

  1. Find index.html in your folder and double-click it.
  2. The page opens in your browser. After every change, save the file and press F5 to refresh.

Optional: live reload

Install the Live Server extension in VS Code, right-click index.html and choose Open with Live Server. The page then refreshes by itself when you save.

If something goes wrong

Example code

<!DOCTYPE html>
<html>
<body>
  <h1>HTML is working</h1>
</body>
</html>

Run this code in the online editor

← HTML introductionHeadings and paragraphs →