To start writing HTML code, all you need is your text editor and a browser.
If you have an HTML file open in your text editor, here’s a basic workflow you can follow:
- Open the file in your browser so you can see the output. There are a few ways of doing this. The easiest way is to right click the file in Finder on macOS or File Explorer on Windows and select your browser using the Open With option.
- Add some HTML code to the file in your text editor.
- Save the file.
- Refresh the browser to see the latest changes.
The last two steps are important. By default, the browser will not refresh for you as you write HTML code, so make sure you save the file first and then refresh the browser to see the latest changes.
There are tools you can use to automatically refresh the browser after saving your file.
Getting started with HTML on MDN