If you are Worried about "How to Save HTML file" Then let me tell you Saving a HTML file or HTML code as a HTML file is very easy but can be Different on different Text Editors.
But the saving process of HTML file is mostly the same for all Text Editors like Notepad,Notepad++,Sublime etc.
so here the some steps we have to follow :
File option is present at the top of your Text Editor. Which contains options like,
New file (to create new Blank text file),
Open file (to open a saved Text/HTML File),
save (for saving a Text/HTML file) and many more.
=> Look for File option in your Text Editor's menu at the to and click it.
After clicking on the File option from the Text Editor's menu you have to look for save option.
And click that save option from the File menu to Save that File.
After clicking on the save Option from the file menu you will see a new pop-up window on the Screen asking you to select Location/path and file name for your Text file.
Here select a location where you want to save your HTML File.
let's select Desktop for your File path.
After Choosing a path for your file now you have to gave a File name to your file (like "myfile" ) followed by file Extension (.html).
File Extensions used by Softwares like Text Editors, media Players or Browser's to Identify the File's data like if my file's Extension is ".mp3" so my Media player will treat my file as a Audio file because ".mp3" extension used in audio file and if my file's extension is ".html" then my browser will treat my text file as a HTML Document.
After giving a File name and Extension (myfile.html) we have to click on save option to save your HTML file.
Next time if you again click on file and select SAVE from the file menu, your text Editor will automatically save your HTML File in the given location and file instead of asking Path and file name from you.
But if you want to save your HTML file with another name, another extension or in another Location then you have to select Save as Option from the File's menu.
Save As option from the File menu works exactly the same as Save option from the file menu but Save option will only asks for location and file name for once after that it will save file on the Save path with the same file name. But the Save As option allow you to change file name,path and asks for File name and file's path every time you Press the Save As from the File menu.
Browser allow users to run or Execute HTML code and Disply as HTML Document or HTML Web-Page.
And There are so many ways of Running or Opening HTML File in Browsers. But in this Tutorial we are going to Discuss only two Processes or ways to Open HTML File in Browsers.
The process of Opening HTML file From File Explorer is easy and Tricky at the same time. So it depends upon you where your file is and your file name and file Extension.
So follow these steps to Open you HTML file From File Explorer.
Here you have to locate your saved file in your File Explorer and make sure that your file has .html extension (otherwise browser will treat your file as plain text and export your code instead of HTML COntent)
After locating your HTML file in the File Explorer now you have to select your file by a single click (in windows OS) and right click on your HTML file and you will see a new menu with many options. Here select open with and you will see some Applications who can open and run HTML file here you have to select your Web Browser like "Chrome" and that Browser will run your HTML in it and Export all Declared HTML COntent as Output.
After selcting a browser in the Open with menu your Selected web Browser will Export HTML Content declared inside the HTML File.
Some text Editors like Notepad++,Sublime and other Text editors support inbult feature who can run HTML file on the Default browser.
In notepad++ you you will see a run option at the Top menu and after clicking that run option you have to select any installed browser to run your HTML file.
But in Subline text Editor you have to right click on the in the Text editor and select Open in Browser option.
This will run your Current html file in the Default browser.