To create new files, you can follow these steps depending on the environment you are using:
In a Terminal
Using the
touchcommand:touch filename.txtReplace
filename.txtwith your desired file name.Using a text editor:
- Open your preferred text editor (like
nano,vim, etc.) and create a new file:
nano filename.txtAfter editing, save and exit.
- Open your preferred text editor (like
In WebIDE (like LabEx)
- Click on the "File" menu.
- Select "New File".
- Save the file with your desired name (e.g.,
index.html).
Alternatively, you can use the keyboard shortcut Ctrl+N to create a new file and then save it.
Important Naming Rules for HTML Files
- Use lowercase letters.
- Use
.htmlfile extension. - Avoid spaces in filenames.
- Use descriptive names (e.g.,
index.html,about.html).
Feel free to ask if you need more specific instructions!
