Details
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 to do this in VS Code is to right click on the file in the Explorer and select Copy Path. Then paste the path in your browser’s address bar and press Enter.
- Add some HTML code to the file in your text editor.
- Save the file.
- Refresh the browser to see the latest changes.
- Repeat steps 2 through 4 until you are done with your project.
Steps 3 and 4 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. However, there are tools you can use to automatically refresh the browser after saving your file.
Exercises
First, try opening the index.html file in your browser. Then try modifying the text (look for the comment for a hint), saving the file, and refreshing your browser.
References
Getting started with HTML on MDN