HTML Editors
HTML Editor Recommendations
You can use a professional HTML editor to edit HTML; here are a few commonly recommended editors:
Microsoft VS Code
A free, open-source, cross-platform, lightweight code editor from Microsoft, achieving nearly full-spectrum IDE development capabilities through a vast plugin ecosystem.
Alibaba Qoder
Alibaba's self-developed agentic programming tool that uses Agent technology to understand entire project code, autonomously completing coding, refactoring, test case writing, and the full development workflow via natural language instructions.
ByteDance Trae
Trae: ByteDance's AI-native IDE, combining traditional coding and AI autonomous development in dual modes; Chinese natural language can generate a complete project with one click.
You can download the corresponding software from the official websites of the above software and install it step by step.
You can also use our online editor:https://www.jyshare.com/front-end/61/
Next, we will demonstrate how to use the VS Code tool to create an HTML file.
VS Code
Visual Studio Code (VS Code for short) is an open-source code editor developed by Microsoft that supports Windows, Linux, macOS, and other operating systems, with built-in extension management functionality.
VS Code installation tutorial reference:https://www.runoob.com/vscode/vscode-tutorial.html
Step 1: Create a new HTML file
After installing VS Code, select "File(F)->New File(N)", and enter the following code in the new file:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>
Runoob Tutorial(runoob.com)
title
head
<
body
<
h1
My first heading
h1
<
p
My first paragraph.
p
body
html

Step 2: Save as an HTML file
Then select "File(F)->Save As(A)" with the file name runoob.html:

When you save an HTML file, you can use either the .htm or .html extension. There is no difference between them; it is entirely up to your preference, and I recommend consistently using .html.
Save this file in an easy-to-remember folder, such as runoob
Step 3: Run this HTML file in a browser
Then right-click the file name in the editor and select Open in Default Browser (or another browser):

Note:Opening an html file in a browser in vscode requires installing the "open in browser" extension.
The running result is displayed as follows:

VS Code can install the Live Preview plugin to preview the code as you write it:

Right-click in the editing window and select Show Preview Option:

Display result:

This way, we can preview the effect in real time while editing code.