How to Save HTML File?

Learn via video course
FREE
View all courses
JavaScript Course With Certification: Unlocking the Power of JavaScript
JavaScript Course With Certification: Unlocking the Power of JavaScript
by Mrinal Bhattacharya
1000
4.8
Start Learning
JavaScript Course With Certification: Unlocking the Power of JavaScript
JavaScript Course With Certification: Unlocking the Power of JavaScript
by Mrinal Bhattacharya
1000
4.8
Start Learning
Topics Covered

Introduction

We can use any text editor to create and save HTML files. In this article, let us take an example of a Notepad text editor and show a step-by-step procedure to save and open an HTML file. Other text editors will also have a similar procedure.

How to Save HTML File on Desktop?

The following are the steps to create and save an HTML file with the help of the Notepad text editor.

Transform Your Career

Choose from our industry-leading programs designed for career success

NSDC Certified

Modern Software and AI Engineering Program

Master full-stack development with AI integration

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

Modern Data Science and ML with specialisation in AI

Advanced data science techniques with AI specialization

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

Advanced AIML with Specialisation in Agentic AI

Deep dive into AIML with focus on Agentic systems

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

DevOps, Cloud & AI Platform Engineering

Build and manage AI-powered cloud infrastructure

12 MonthsDuration
AI-LedCurriculum
Career SupportSupport
GoogleAmazonPaytm+1000 more
Go to Program
NSDC Certified

AI Engineering Advanced Certification by IIT-Roorkee

Premier AI engineering certification from IIT-Roorkee

3 MonthsDuration
AI-LedCurriculum
Career SupportSupport
Program highlights
Go to Program

Step 1. Open Notepad

  • On the start menu, search for Notepad in Windows.
  • Click on the open option on the right side to open the Notepad editor.

saving-html-file-open-notepad

Step 2. Write HTML Code

  • After opening the Notepad, you can write any HTML code.
  • An example is shown below. saving-html-file-write-html-code

Step 3. Save the HTML page

  • Once the code is written, you can click on Files and then Save or directly press Ctrl + S.

saving-html-file-save-the-html-page

  • Once you click on Save you will get an option to write the name of the file with an extension.
  • Write the name of the file followed by the .html extension and save the file encoding as UTF-8.

saving-html-file-name-the-file-extension

  • Your HTML file is now created and will be visible in the place where you saved it.

  • You can double-click on the saved HTML file to view it on your browser.

saving-html-file-double-click-to-view

Turn Learning into Career Growth

1200+Hiring Partners
89%Placement Rate
11,000+Placements
147%Avg Salary Increment
2.5XCareer Growth
₹23 LPAAvg Post-Scaler Salary
1200+Hiring Partners
89%Placement Rate
11,000+Placements
147%Avg Salary Increment
2.5XCareer Growth
₹23 LPAAvg Post-Scaler Salary

How to Open HTML File in Notepad Text Editor?

Now once you have created an HTML file, you may want to edit it at some point in time.

The following are the steps to open an HTML file in Notepad and edit it.

Step 1. Open Notepad

  • On the start menu, search for Notepad in Windows.
  • Click on the open option available on the right side to open the Notepad editor.

opening-html-file-open-notepad

Step 2. Open HTML File

  • Go to file -> Open and click on it or directly press ctrl + O

opening-html-file-open-html-file

  • Browse the HTML file that you want to open, select it, and then click on open.

opening-html-file-browse-the-html-file

  • Once you click on open, the file will be opened in the Notepad editor, and you can edit it.

opening-html-file-click-open-to-open

  • Now you can edit the file and can save it by pressing Ctrl +S or by going to File then Save.

opening-html-file-editing-the-file

Other Code Editors to Use for Writing HTML Code

Notepad is one of the basic code editors available in Windows.

These days we have many code editors like VSCode, Notepad++, Sublime text, etc., that provide us with some extra features along with writing the code.

The following are the advantages of using these code editors.

  • There is an option for auto-complete code that recommends the words while we type the code and also highlights the words in case there is a spelling mistake or some error.
  • We can run the code directly from these notepads.
  • We can synchronize the code with code hosting platforms like Github, which gives us the advantage of collaborating and sharing our code with others.
  • There is an option for syntax highlighting and color themes which helps increase the readability of the code.

Scaler Placement Report and Statistics

₹23L
AVG CTC
SCALER PLACEMENT PROOF

Scaler learners achieved 2.5x salary growth with average post-Scaler CTC reaching ₹23L.

11,000+placements
650+companies
Verified data

Conclusion

  • You can create an HTML file using any code editor.
  • After opening a code editor, write the HTML code and save the file with the .html extension.
  • We can double-click on the HTML file to view its output on the browser.
  • We can edit the HTML file by opening it in the code editor again.
  • Notepad is a basic code editor with limited features. There are various code editors with extensive features that help us to write code faster, like VS Code, Notepad++, Sublime text editor, etc.
Hiring Partners:
GoogleGoogleAmazonAmazonMicrosoftMicrosoftFlipkartFlipkartAdobeAdobe1200+ more