To write HTML you need a text editor, and to see the result you need a browser. These videos show how to run HTML code and which editors make writing it easier.
Choosing an editor
You can write HTML in Notepad, but a code editor helps a lot. Popular free editors include Visual Studio Code, Sublime Text and others. Look for:
- Syntax highlighting, so tags and text are different colours.
- Auto-completion and auto-closing tags.
- A file explorer for your project folder.
- Extensions such as a live preview server.
How to run HTML code
- Create a folder for your project.
- In your editor, create a new file and save it as index.html. The .html extension is essential.
- Write your HTML and save.
- Open the file in your browser: double-click it, or drag it into a browser window.
- After each change, save and refresh the browser.
Faster workflow
- Use a live server extension so the browser refreshes automatically when you save.
- Use the browser's developer tools (right-click, Inspect) to see and test your HTML and CSS.
- Online code playgrounds let you try snippets without saving files.
Handy tools
Our text to HTML converter turns plain text into paragraphs and lists, and the JSON formatter tidies data you may work with later.
Watch: code editors for writing HTML
Html Editor || Code Editor For Writing Html1:15Html Editor || Code Editor For Writing Html
Want the full picture? This article is part of Business websites: the complete guide, our in-depth guide with everything in one place.




