HTML is called Hypertext Markup Language, which is one of the main languages for writing web pages on the Internet. Hypertext files written in HTML are called HTML files. Under the Windows operating system, we can use notepad to write or view the HTML source code of web pages. When writing HTML code in Notepad, you must change the txt suffix name of Notepad to html or htm. However, under Windows XP system, the suffix name of the file is hidden by default, so some settings need to be made before writing the code to display the suffix name. The operation process is as follows: Open My Computer—>Click Tools—>Select Folder Options—>Click View (as shown in Figure 1)—> Find the extension that hides the known file type in Advanced Settings (as shown in Figure 2)—> Remove the hook in front.
(Figure 1)
(Figure 2)
This way you can see the suffix names of all files. As shown in Figure 3, the suffixes of the two files: html and notepad are shown.
(Figure 3)
So after we finish writing the html code, we can execute the code by changing txt to html. To view the source code in the web page, you can select View on the browser's menu bar to see the code of the current web page.