|
When it comes to coding, there is a lot of debate surrounding the best text editor. Some people swear by Notepad++, while others prefer Sublime Text. And then there are those who think that Atom is the way to go. But what about those who want to use HTML in Notepad? Is that even possible?
Yes, it is possible to use HTML in Notepad. You simply need to follow a few steps and make sure that you save your file with the correct file extension. In this article, we will show you how to use HTML in Notepad and how to preview your work in a web browser.
Using HTML in Notepad
First, open up Notepad (or any other text editor). Then, type in the following code:
Hello, world!
Once you have typed that code into your text editor, save your file as “index.html”. Make sure that you save it as a .html file – if you save it as a .txt file, it will not work.
To preview your work, simply double-click on the index.html file and it should open up in your web browser. Alternatively, you can open your web browser and drag the index.html file into the window. Either way, you should see something like this:
Hello, world!