You can write HTML in any plain text editor. Professional developers usually use a code editor, which adds colours, auto-completion and error hints.
Popular editors
Visual Studio Code: free, fast and the most popular choice.
Sublime Text: lightweight and quick.
Notepad / TextEdit: built into Windows and macOS, fine for practice.
Steps to create a page
Open your editor and type some HTML.
Save the file with the .html extension, for example index.html.
Double-click the file to open it in your browser.
You can also practise right here: every lesson has a Try it Yourself editor.
💡 Key Takeaways: HTML Editors
Mastering HTML Editors helps you write clean and reliable HTML code. Follow standard conventions, test edge cases, and keep logic simple. Try running the code example below and complete the exercises to build confidence.
HTML Editors Code Example
HTML
<!DOCTYPE html>
<html>
<body>
<h1>Saved as index.html</h1>
<p>Edit this text, then press Run to see the change.</p>
</body>
</html>
Free sign-in required · Google login available
HTML Editors Practice Exercises
Check what you learned in “HTML Editors”.
/ 3 solved
Fill in the blank
HTML files are saved with this file extension.
index.
✓ Correct!Not quite. Try again.
Multiple choice
Which of these is a popular free code editor?
✓ Correct!Not quite. Try again.
Code challenge
Add a paragraph with the text "I can edit HTML!" below the heading.
Write the code in the live editor. Your answer is checked automatically.