How to make html file
HTML is one of the most basic languages in web programming. It is a markup language used to describe the structure and content of web pages. Following this article, you will learn how to create HTML files.
- Install a text editor
To write HTML files, you need to install a text editor. There are many text editors to choose from, such as Sublime Text, Notepad, and Atom. Choose an editor that suits you and download and install it.
- Create a new file
Open your text editor and click the "New File" or "Create New File" menu item. The input file name ends with ".html", such as "index.html", which is a common naming rule for HTML files. If you are using a Mac computer, you can also use the suffix ".htm" to save the file, but using ".html" will be more standardized.
- Prepare to write HTML code
In the text editor, enter the following HTML template:
< html>
<head> <title></title> </head> <body> </body>