HTML files (Hypertext Markup Language) , are mostly used on static pages of different websites. They are used to integrate some formatting attributes and in turn to place or design different design specifications in the content of the website.
There are different applications that can be used to open, create or edit HTML files , these can be web browsers, more specialized programs or simply the Windows notebook o MAC TextEdit
To learn more, in this tutorial we will explain step by step how you can open and create your own HTML file , as well as tell you what they are? And what function do they play?
Index:
What is it and what files with extension are used for. HTML?
An HTML file is basically a web page , in which you can enter if you use any browser that allows access to them. These files contain a written code known as: Hypertext Market language or Hypertext Markup Language HTML.
What is a file extension and what function does it fulfill?
Before continuing, it is important to know what an extension is and what function it performs in operating systems. These extensions are very varied and can work in different programs as long as these are compatible with them.
The extension of a file is made up of a set of three or four characters. These are found in the final part that constitutes the name of the file, for example; .html, .docx, .txt. These tell the system and experienced users what type of file it is and in turn they tell the operating system which programs can open them.
A default program for each file extension is commonly associated , where just clicking on the file will automatically start and in turn allow the user to observe and edit it if desired. A clear example of this is Word and other word processors, since depending on which one you have installed and you have indicated as default, it will be the one that starts when you open the file.
When the program that allows it to work the file extension is no longer on the computer, it will not be possible to open the associated file many times.
How to open and run .HTML files on smartphones or computers?
There are different methods that can be applied on Smartphone and computers to open or run an .HTML file. Obviously it will also depend on the purpose. That is, if you only want to view the information in the file or modify its code and therefore its contents.
On Windows PC
In Windows the alternatives are simple and very wide, although in this case we will not talk about alternative programs, since we will explain a variety of these later.
To start an HTML file in Windows you have to do the following:
- Search for the file that you are interested in running.
- If it is found with the HTML extension will appear with the browser icon that you have programmed as default. (In this case Chrome).
- You can click on the file to start it, if this is the first time you do it, will indicate the system you want to use. Point to the browser of your choice.
- A page will open with the information contained in the file.
Another method to open an HTML file is to use the file storage path as a link page:
- As shown in the previous image, the path of the HTML file we have created is the following : C / Users / Zoneo / Desktop / hello.HTML This path can be copied and pasted in your browser and it will automatically open it.
- Remember to use the file location path, you can see it by searching the properties of this one.
On Mac computers
In MAC systems the process is identical to that presented in Windows, it is necessary to have a fully functional browser on the computer and start the file, you can also choose to use the same TextEdit to open them.
The steps to use TextEdit with .HTML are as follows:
- Locate the file you want to open.
- Choose how you want to run it .
- In this case you choose to use TextEdit.
Another method is as follows:
- Starts TextEdit.
- You locate the “File or file” option to open the items stored on the computer.
- You look for the file that you are interested in opening and run it.
>
Finally, using any browser:
- Enter the file path where the web links or search bar are written.
On Android mobile phones
On Android the process is unique. Since you can view HTML files only through the browsers available for the operating system. For this you only have to place the file storage address in your browser’s web bar.
For example: the file you are interested in opening is called “Post.html”, in the web address bar of your browser you will write file : ///sdcard/post.html. Where sdcard is the storage address of the item of interest. Following this the name of it. On different Android devices there is a file manager that allows you to open HTML documents, if your Smartphone contains it you can try it.
On iPhone devices with iOS
On iPhone devices with iOS operating systems the procedure is identical to the one previously explained, there is no difference. It is essential that you know the exact location of the file and its name, and then place all this data inside the browser that interests you in order to view it.
As in the previous case, if your device contains a text editor or file manager compatible with the .HTML extension, try using it for this.
It should be noted that there are applications for Android and iOS that can edit them, but keep in mind that many of these generate failures, errors or do not work correctly. So if you decide to try one, don’t be surprised that it causes you inconvenience.
Create a .HTML file by notepad or TextEdit span>
This process is ideal for few experienced users who want to learn little by little, how this extension works and how the commands are written inside the file.
To create the file you must do the following:
- Open Notepad or TextEdit on your Windows or MAC computer.
- Enter simple content to practice. They can be a few words.
- Choose the option “ Save as.”
- Indicate a path where you want to store the file. li>
- Now the most important step, where it says “Name” you will place the one with which the content will be identified. After that you will place the extension .HTML and press permittedSaveEND.
- The file will have been created . After this you should see the route indicated with the icon of your default browser for that moment.
The Notepad or TextEdit program is very basic for an experienced user in the HTML code, since they are very limited tools. But it is an excellent method to understand how it works.
If you want to make a more structured text and with different formats you can investigate the different codes used to insert texts or images into an .HTML file
List of the best applications and alternative programs to open and edit document with extension .HTML
There is a wide variety of programs that can edit and open files with the .HTML extension. They can work on different operating systems such as MAC or Windows, among them we can name the following.
Microsoft Edge
This is the default browser on Windows operating systems. Like many, this allows its users to view HTML files without problems.
Mozilla Firefox
Like Edge, in Firefox you can observe .HTML files without problems. This browser is available for both MAC and Windows, allowing it to be used on more systems.
Google Chrome
It is the browser created by the company of Google and like the previous ones, you can see the content of any .HTML file stored on your computer. It is available for different operating systems.
>
Apple Safari
Safari is the default browser for MAC operating systems, in the you can also see any .HTML content you have saved on your computer.
Microsoft Notepad (Notepad)
Previously we talked about this program and as we said it makes it easier for you to see .HTML files, although in a simpler way. It is a good tool for users who are starting. But it is not recommended to be used if you are an experienced user due to the limitations it contains.
TextEdit
Like the notebook, this program performs all the functions indicated above. The only and biggest difference is that it belongs to the Apple company, being only available for its operating systems. Similarly, it is very limited, but this does not prevent you from using it.
EditPlus
It is a program available for Windows, which allows you to replace the classic notebook, in addition to being able to use it for different tasks in the programming of web pages, especially those that work with the extension .HTML. Which makes it an excellent program to view and edit these types of files.
Altova StyleVision
It is a program that allows you to edit and create HTML files, if you are interested, you can try its trial version and if you like it, you can buy the complete program to be able to use it with more and better functions.