Home 〉 Other Tutorials 〉 Microsoft Text Editor (Notepad) Tutorial | How to Write and Run HTML Code Easily
Microsoft Text Editor (Notepad) Tutorial | How to Write and Run HTML Code Easily !
Looking for a simple way to start writing HTML code on your computer?
Microsoft Text Editor (Notepad) is a built-in tool in Windows that lets you write, save, and run HTML code easily. This blog post explains its importance, advantages, and limitations, and walks you through a step-by-step tutorial—from writing your first HTML page to running it in a browser. We also cover helpful keyboard shortcuts and related tools. If you're starting your web development journey, this is the perfect place to begin. The detailed blog post on the same is as follows.
Are you new to coding and looking for a simple way to write and test your HTML code? Microsoft Text Editor, commonly known as Notepad, is a lightweight, built-in tool in Windows that can help you get started without installing any extra software. It’s perfect for beginners who want to understand how coding works from the ground up.
The Microsoft Text Editor is crucial because it provides a clean, distraction-free environment where users can write code or text. It is available by default on all Windows systems, making it a reliable tool for quick edits and learning HTML basics.
Click on the Windows start menu, type Notepad, and hit Enter.
Copy the below sample code and paste it into Notepad.
Example 📄
<!DOCTYPE html>
<html>
<head>
<title>My First Web Page</title>
</head>
<body>
<h1>Welcome to My Website</h1>
<p>This is a paragraph created using Notepad.</p>
</body>
</html>
Go to the folder where you saved the file, double-click on it, and it will open in your default browser. That’s it! You’ve just written and run HTML using Microsoft Text Editor.
Microsoft Text Editor (Notepad) may seem basic, but it’s a powerful learning tool for beginners in web development. It allows users to grasp the fundamentals of HTML without any distractions. Once you’ve mastered the basics, you can move on to advanced code editors for more complex projects.
Yes, you can. Just save the files with the correct extensions like .css for CSS and .js for JavaScript.
Notepad is best suited for learning and small projects. For professional work, consider tools like VS Code, Sublime Text, or Notepad++.
Notepad is a Windows-only tool. For Mac or Linux, alternatives like TextEdit or Gedit are available.
Make sure your file is saved with the .html extension and that All Files is selected in the Save As dialog.