Due to the problem of browser settings, sometimes when you open an HTML file, the home page is always displayed instead of the HTML page. How to solve it? Next, I sorted out the relevant methods for you that the computer browser can't open the local HTML file. I hope it will be helpful to you!
There are several reasons for the problem of appeal:
1. There is a problem with the source code in your HTML file, which cannot be correctly parsed into HTML pages, especially the declaration part of the file header. It is recommended to enter the editing tool to view it. 2. The browser home page is maliciously tampered with. Even if you change the browser home page, it will automatically jump to the home page specified by the plug-in. Of course, the first possibility is very small.
2 because the IE home page was hijacked, there was an appeal problem. You can try to change the browser home page first (as shown in the figure above). If the above situation still occurs after the change, it is recommended to use the security repair tool to repair ie
The other is to drag the HTML file directly to the browser that has been opened, so that the HTML file can be opened. Of course, the premise is that the HTML file can be opened. If there is still an appeal problem, how likely is it that the IE home page will be hijacked? Use two steps to solve it.
Create a new text file as shown in the figure: name the file as 1 txt
2 change the file suffix to HTML
3 enter the code in the file
< p > my favorite thing is to write Baidu experience
, normal display in browser
END
Continue entering code
Enter code:
< p > my favorite thing is to write Baidu experience
Preview can see the effect as shown in the figure. Why and how to solve it? Let's take a look at the figure below
The file is saved as. I use EDITPLUS. The coding method of the file is different from that written in the article,
So we save the asking price as UTF-8 code and overwrite the original file. Let's browse and try the effect
Confirm to overwrite the source file!
5. Browse inside the browser and see that the effect is normal! The main reason for garbled code is that the declaration in the article is different from the coding format of the file itself, and the browser recognition error appears garbled code! I just looked for a long time to find the answer. Let's share it! I hope you like it and think it helps you. Click the praise in the upper right corner!