Method: First create a new Notepad file on the desktop and open it; then enter the HTML statement and content in the file; then click "File" - "Save As" in the upper left corner, and select in "Save Type" "All files"; finally change the file name to the format of "XXXX.html", select the save address, and click "Save".
![How to create html file](https://img.php.cn/upload/article/202104/14/2021041417204289418.jpg)
The operating environment of this tutorial: Windows7 system, CSS3&&HTML5 version, Dell G3 computer.
First, create a new Notepad file on your computer desktop, and then open it.
![1618391524601644.png How to create html file](https://img.php.cn/upload/image/572/226/500/1618391524601644.png)
![1618391556412656.png How to create html file](https://img.php.cn/upload/image/856/486/485/1618391556412656.png)
![1618391590748336.png How to create html file](https://img.php.cn/upload/image/838/352/578/1618391590748336.png)
##Next, enter the HTML language in it, remember the first paragraph Add to a line. The indentation is based on a "tab key". Add basic tags such as and enter them inside. Just the content.
![1618391617686070.png How to create html file](https://img.php.cn/upload/image/562/374/394/1618391617686070.png)
After completing the input, click "File" "Save As" in the upper left corner, and select "All Files" in "Save as Type".
![1618391672244226.png How to create html file](https://img.php.cn/upload/image/933/538/101/1618391672244226.png)
Then change the file name to the format of "XXXX.html", select the save address, and click Save. Then the files we started seeing were generated. (The editor here wants to say that the reason why the file has the "360 Browser" mark is because the editor has used this browser to open such files by default. This is not fixed and can be set according to personal preferences)
![1618391699722530.png How to create html file](https://img.php.cn/upload/image/893/308/388/1618391699722530.png)
![1618391721136426.png How to create html file](https://img.php.cn/upload/image/469/660/162/1618391721136426.png)
After opening the file, a simple web page will appear, with tags and content.
![1618391966414808.png How to create html file](https://img.php.cn/upload/image/738/585/251/1618391966414808.png)
Recommended learning:
html video tutorial
The above is the detailed content of How to create html file. For more information, please follow other related articles on the PHP Chinese website!
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn