HTML to TXT is very simple and requires a computer to operate. You only need to change the extension .html of the web page HTML document to the extension of TXT text format, and you can open it with Notepad.
If the extension is not displayed, the computer needs to be set to display the extension.
Below we introduce how to convert html web page files into txt text format files.
The specific steps for converting HTML to TXT are as follows:
#1. First, we need to let the computer display the file extension so that we can see and change it. Extension
2. Enter the rename
and click once with the mouse to change the extension html file, then right-click the mouse to
to pop up the right-click Tab
Pop up the right-click tab
Click "Rename" after popping up the right-click tab.
Enter file renaming
You can change the file name and take renaming screenshots
You can still enter the renaming step by using shortcut keys. Click once with the left mouse button to select the desired After renaming the file, press the "F2" shortcut key to also enter the renamed file.
3. Change the extension
We change the ".html" extension of the web page html to the ".txt" extension, and then press the "Enter key ( Enter)", the extension change prompt window will pop up, click "Yes" to complete the change from html to txt.
Extension change prompt window
Extension change prompt window
Change to txt file
Change to txt file, realize html conversion to txt
This completes the conversion of html to txt. Let's double-click the file to see if we can open the changes from an html web page to a txt text file.
Although the html web page file is converted into a txt text format file, its content is still the previous html source code content, but the suffix extension has changed.
Summary, generally txt documents are converted to html. To form a web page, first the content of the txt file needs to follow the html web page structure, so that the text file can be converted into a web page file. The steps are very simple and can be done as long as you are careful.
Related reading:
The above is the detailed content of How to convert html to txt file? Detailed explanation of how to convert html to txt!. For more information, please follow other related articles on the PHP Chinese website!