Before creating a page, give yourself a simple place to work. You need one tool for writing, another for viewing and a folder where you can find the right file again. This chapter explains each choice without asking you to install a compiler or a large collection of tools.
Create a folder and recognise a filename extension.
Save HTML as plain text using UTF-8.
Avoid accidentally creating an .html.txt file.
Understand what editor suggestions do and what they do not check.
Two tools with different jobs
A text editor lets you write and change text files. For HTML, use an editor that saves ordinary text, not a word-processing document with its own formatting. VS Code, Notepad and Notepad++ are examples of suitable tools.
A browser reads the saved HTML and displays the page. You can use a current version of Chrome, Edge, Firefox or Safari. It is normal to keep the editor and browser open at the same time.
The editor is like the place where you write a notice. The browser is like the board where you inspect how readers will see it. Editing the notice and looking at the board are separate actions.
Tool
What we use it for
What it does not guarantee
Plain text editor
Write and save source files
That the HTML is correct
Browser
View and test a page
That every writing rule has been followed
File manager
Create folders and locate files
That the open browser tab uses the file you just edited
A simple choice: VS Code
Visual Studio Code, usually shortened to VS Code, is an editor available for Windows, macOS and Linux. It can colour different parts of HTML and suggest closing tags. Syntax highlighting is the name for this colouring. Syntax means the rules used to write something.
If VS Code is already installed, you can use it. Otherwise, obtain it from the official VS Code download page and use the installer for your operating system. An operating system is the main software that manages your computer, such as Windows.
On Windows, open the downloaded installer and follow its steps. On macOS, open the downloaded application package and place the application in Applications as directed. On Linux, use the package or installation instructions appropriate to your distribution. Exact installer screens can change, so there is no need to match a screenshot perfectly.
You do not need to create an account, install an AI assistant or enable an extension to write these first HTML files. An extension is an optional add-on for the editor. Built-in HTML support is enough for this batch.
Use a simpler editor if you prefer
On Windows, you can start with Notepad if it is available. On macOS, TextEdit can be used after switching the document to plain text with its Make Plain Text option. Linux desktop systems commonly include a text editor; choose plain text rather than a word processor.
A word processor such as Word can add document formatting that a browser should not interpret as your HTML source. Saving a Word document and merely changing its filename to .html does not turn its contents into the plain HTML you intended to write.
Choose one editor and keep using it for the first few chapters. Learning several editors at the same time can distract you from learning the page itself.
Create a practice folder
A folder keeps related files together. A filename identifies one saved file. Make a folder called html-practice in a location you can find, such as Documents.
Open your computer's file manager: File Explorer on Windows or Finder on macOS.
Open Documents or another suitable location.
Create a new folder and name it html-practice.
In VS Code, choose Open Folder and select that folder.
Create a new file inside it called setup-check.html.
Example fragment — use inside a complete program
Documents
html-practice
setup-check.html
This is a folder diagram, not HTML to paste into a file. There is only one example file at this step. Future files will stay in the same practice folder so that you can find them easily.
What does .html mean?
The ending of a filename is its extension. In setup-check.html, the extension is .html. It helps tools recognise the intended kind of file. Both .html and .htm are used for HTML; we will consistently choose .html.
The extension is not the whole document format. A file named notes.html can still contain the wrong data if it was saved incorrectly. We need both a suitable filename and plain HTML content.
Use short lowercase names with hyphens between words, such as club-notice.html. Spaces can work, but simple names make paths easier to type and share. Letter case can matter on a hosting server even if your local computer appears more forgiving.
Save without a hidden .txt ending
Some systems hide familiar extensions. That can make setup-check.html.txt appear to be setup-check.html even though it is a text file with a different final extension.
On Windows, enable the file manager option that shows filename extensions. Depending on the version, it appears under View, Show or Folder Options. Then inspect the actual full name.
When using Notepad's Save As dialog, choose the option for all file types if a plain text filter would append .txt. Enter setup-check.html and select UTF-8 if an encoding choice is shown. Check the saved file in your folder afterwards rather than trusting only the dialog.
Encoding is the rule used to turn saved bytes into characters. Bytes are small units of stored information. UTF-8 is an encoding that can represent English and many other writing systems. Save our HTML as UTF-8; the page's meta charset line will identify that encoding to the browser.
Test your setup with a complete file
Paste this into setup-check.html and save it. On Windows and Linux, Ctrl+S normally saves; on macOS, Command+S normally saves. The File menu provides Save too.
setup-check.html
<!DOCTYPE html><htmllang="en"><head><metacharset="UTF-8"><title>My HTML Setup Check</title></head><body><h1>My practice folder is ready</h1><p>I saved this page as an HTML file.</p></body></html>
Browser previewDocument title: My HTML Setup Check
This preview shows the example in a browser. Save the complete code in local files to test links between pages and downloads. Same-page section links work here.
In your file manager, right-click the saved file and choose Open with, then your browser. If double-clicking opens an editor instead, that does not mean the file is broken; it may only mean the editor is your computer's default application for that file type.
Compare your result with the browser preview. You should see My practice folder is ready as a heading and one paragraph beneath it. In a normal tab, the document title is My HTML Setup Check.
The edit, save and refresh cycle
Refresh, also called reload, asks the browser to load the current page again. For a directly opened local file, it reads the saved file again. Unsaved editor changes are not automatically part of that file.
Your first practice cycle
1Edit in the text editor
2Save the file
3Reload in the browser
4Compare with your intention
Reloading cannot include an unsaved edit. Check the full file location if the result stays unchanged.
Change the paragraph to I can edit, save and refresh my page. Save in the editor, return to the browser and press its reload button. You should see the new sentence. This tiny check proves that you can change the actual file your browser is viewing.
There is no separate compile step for these plain HTML files. You do not need a C compiler, JDK, Node.js or a terminal command for the examples in Chapters 1-5.
Problem and solution: the browser shows the old sentence
Problem: you change the paragraph, but the browser still shows the old words.
Work through the checks in order. First save the file. Then refresh the browser. Next confirm the filename in the editor and the location in the browser's address bar. You may have two copies with the same name in different folders. If that is the case, reopen the copy in your practice folder.
Do not reinstall the editor as your first response. A small check is easier and more likely to reveal which step was missed.
Common mistakes and useful tips
Saving setup-check.html.txt: reveal the full filename and correct the final extension.
Writing in a rich-text document: switch to plain text before saving.
Opening a different copy: compare the folder location as well as the filename.
Expecting colours in the editor to prove correctness: highlighting is a reading aid, not a full validator.
Installing many add-ons immediately: use the basic edit, save and refresh cycle first.
Assuming a local preview publishes the page: your practice folder is still local.
Practice questions
Name the two main tools you need to write and view these HTML examples.
What is the extension in club-notice.html?
Why might club-notice.html.txt open as ordinary text?
Explain why saving and refreshing are two different steps.
Create the setup-check file, change its paragraph and verify the saved change in your browser.
You have two files called setup-check.html in different folders. How can you check which one the browser opened?
Check your practice answers
A plain text editor for writing and a browser for viewing. A file manager also helps organise the work.
.html.
Its final extension is .txt. Reveal the full name and save it as the intended HTML file.
Saving writes changes to the file. Refreshing makes the browser load the saved version again.
The paragraph should change after saving and reloading. If it does not, check the folder and full filename before changing more code.
Inspect the local address in the browser and compare its folder path with the editor's file location. Reopen the intended file if necessary.
Interview questions
Do beginners need a special HTML compiler?
No. A browser can directly read these saved plain HTML files. Some advanced development setups have build tools, but those are not required for the first lessons.
What is the difference between an editor and a browser?
The editor changes the saved source. The browser interprets that source and displays the resulting page. Keeping both open makes the edit-and-check cycle easy.
Why use UTF-8?
It supports a wide range of characters in one common encoding. The file should actually be saved in UTF-8 and the document should identify it consistently.
Does an editor's automatic closing tag guarantee correct HTML?
No. It may help avoid typing mistakes, but it cannot decide every content or accessibility rule for you. You still need to inspect and test the document.
Quick revision
Use a plain text editor and a browser.
Keep related files in one practice folder.
Save with the intended .html extension and UTF-8 encoding.
Show filename extensions when checking a suspicious file.
Edit, save and refresh are separate actions.
Start without extra tools; add them when you understand the need.