HTML or Hyper Text Markup Language is the most commonly used and popular languages for creating web pages. It has HTML elements that consist of tags that are surrounded by angle brackets in the web page content. It is very easy to save HTML files on your computer using some computer applications. This article will show you how to save HTML file in simple steps.
Saving HTML in Word Processor
- Write the webpage as you would write any other document in the Word processor.
- Always choose the “Save As” option when you want to save the page you have created.
- When you click on “Save As” form the File menu, a dialog box will come up on your screen. Here you will find the option of saving your page in a specific file format.
- If you are working on a PC, choose ASCII TEXT DOS or TEXT as your file type; any of the two options will work.
- If you are working on Apple Mac, save your document in TEXT format.
- You can save web pages by assigning a floppy disc for every web page to make things simpler. However, if you want, you can also save it to your hard drive.
- Always remember to choose the “Save As” option because otherwise it will not save in the text format.

Saving HTML using Delphi
- Working with Delphi will allow you to create customized applications for web browsing through its TWebBrowser component.
- It will also let you add Internet, document viewing, network and file browsing, and downloading of data to your applications.
- When you use Internet Explorer, you can view the source HTML code of a web page and save it to your local drive as an HTML file.
- If you want to save a webpage that you are viewing, go to the File menu at the top of the screen and select “Save As” option from the drop down list. A dialog box will open on our screen which will show you different file type options for saving the web page.
- The TWebBrowser component of Delphi will provide you all the access to Web browser functionalities from the Delphi application. You will find it on the Component Palette’s “Internet” page.
- However, if you want to save the webpage you are viewing in the raw HTML format, you must select the option Web page, HTML only (*.htm, *.html) as your file type.
- This will save the source of your web page to your computer’s drive as it is.
- This will not save the graphics on your webpage or any other files that were used on the page.
Saving HTML file from TEXTEDIT
- Saving HTML files properly using TEXTEDIT is tricky and the technique involved works with the filename extension.
- If the extension is wrong, then your computer’s operating system will not understand it. It may also happen that your web browser considers it as plain-text file even though it looks like HTML inside.
- When you use TEXTEDIT, type in some HTML in the window and you will see a ruler at the top which makes it look like plain text. This is not a good thing as the program should work with Rich Text format.
- To fix this problem, go to Format and select the option Make Plain Text and the ruler will go away.
- Now, go to File and select “Save As” option from the drop down list. Type the filename which must include the .html file extension. You only have to do this step once because once you name your file properly, TEXTEDIT remember it for future sessions.
- Click on OK and you’ll get a box which asks you to choose the .txt or .html extensions. Click on Use .html option and you are done.
