Web pages can be created and modified by using professional HTML editors. However, for learning HTML we recommend a simple text editor like Notepad (PC) or TextEdit (Mac).
We believe using a simple text editor is a good way to learn HTML. Follow the steps below to create your first web page with Notepad or TextEdit.
Windows: Open the Start Menu, search for Notepad and open it.
Write or copy the HTML code into Notepad.
Save the file with a .html extension (e.g., mypage.html). Choose UTF-8 encoding.
Open the saved HTML file in your favorite browser. The result will look much like the example to the right.
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
Take our HTML Tutorial quiz and earn a certificate.