1. The Critical Notepad Setup
The good news: unlike TextEdit, Notepad is already a plain-text editor — no settings to change before you start. The bad news: Windows will try to add a .txt extension to every file you save, which will break your web pages. You must tell Notepad to save as All Files every time.
- Open Notepad on your Windows PC (search for it in the Start menu).
- Write your HTML code.
- When saving, go to File > Save As.
- In the Save as type dropdown at the bottom of the dialog, change it from Text Documents (*.txt) to All Files (*.*).
- Why? If you leave it on "Text Documents," your file will be saved as
index.html.txtand your subdomain won't recognize it.
- Why? If you leave it on "Text Documents," your file will be saved as
- Type your filename including the extension (e.g.,
index.html) in the File name field. - Click Save.
2. Saving Your Files Correctly
Every time you save an HTML or CSS file in Notepad, follow these steps:
- Go to File > Save As (not just Save, the first time).
- Set Save as type to All Files (*.*).
- Type your filename with the correct extension (e.g.,
index.htmlorstyle.css). - Once the file already has the right extension, you can use Ctrl + S for subsequent saves.
3. The "Live Edit" Trick with Cyberduck
One of the best things about Cyberduck is that you don't have to keep dragging and dropping files every time you fix a typo. You can edit your files "live" on the server.
- Connect to your server in Cyberduck.
- Right-click on your
index.htmlfile (or any file you want to change). - Select Edit With > Notepad (or whichever editor you prefer).
- The file will open in Notepad. Make your changes.
- Press Ctrl + S to save.
- Cyberduck will detect the save and automatically upload the new version to your subdomain.
4. Organizing Your Subdomain
Since you have multiple folders (like css and images), your Notepad files need to know where to look.
- In your HTML code: If your image is in the
imagesfolder, your code should look like:<img src="images/myphoto.jpg"> - In FileZilla/Cyberduck: Ensure that the folder named
imagesis in the same location as yourindex.html.
Watch Out: File Encoding
Older versions of Notepad default to saving files in a format called ANSI instead of UTF-8, which can cause strange characters to appear in your browser. When you do File > Save As, check the Encoding dropdown and make sure it is set to UTF-8.
Hot Tip: If you find Notepad a bit frustrating as your project gets bigger, most students eventually switch to a free tool called VS Code or Notepad++. They highlight your code in different colors so it's much easier to spot mistakes — and they handle the file-extension problem for you automatically!