How to save file as an HTML?

HTML stands for Hypertext Markup Language, and it’s the backbone of the web. It’s a simple yet powerful language that allows you to create rich, interactive content that can be viewed with a web browsers. In this post, we’ll show you how to save files as HTML, whether you’re using Notepad editor on Windows or TextEdit on MacOS. With these tips, you’ll be able to create HTML documents in any environment.

How to save text file as an HTML on Windows (Notepad)?

If you are using Notepad on Windows, and you want to save document as an HTML file, you can go through the below steps to do this:

  1. In the menu, click “File” and then “Save as”
  2. In the saving window, change “Save as type” option to “All Files” and “Encoding” to “UTF-8”
  3. Enter a file name and at the end add .html extension
  4. Click “Save”
Saving file as HTML in Notepad on Windows

How to save text file as an HTML on Mac (TextEdit)?

If you are using MacOS, the easiest way to save HTML file without installing any additional software will be use of a built-in TextEdit editor.

  1. Open a new file in the TextEdit editor
  2. In the menu click “Format” and select “Make Plain Text” (you can use keyboard shortcut SHIFT + CMD + T)
    Make Plain Text option in TextEdit
  3. Paste your HTML code
  4. In the menu click “File”, and next “Save”
  5. Enter a file name and at the end add .html extension
  6. Click “Save”
Saving file as HTML in TextEdit on MacOS

Now, you know how to save a file as an HTML both on Windows and MacOS, and you can open it in the browser you are using (for example Chrome, Firefox, or Edge).

Leave a Reply

Your email address will not be published. Required fields are marked *