HTML editor


HTML Editor Recommendation

You can use a professional HTML editor to edit HTML. PHP Chinese website recommends several commonly used editors:

You can download it from Download the corresponding software from the official website of the above software and install it according to the steps.

Next we will demonstrate how to use the Notepad++ tool to create HTML files. The steps for the other two tools are similar.


Notepad++

Notepad++ is a set of text editors under the Windows operating system (software copyright license: GPL). It has a complete Chinese language interface and supports multi-language writing. (UTF8 technology).

Step 1: Create a new HTML file

After Notepad++ is installed, select "File (F)->New (N)" and enter the following code in the new file:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>php中文网(php.cn)</title>
</head>
<body>
<h1>我的第一个标题</h1>
<p>我的第一个段落。</p>
</body>
</html>

微信截图_20190213115439.png

Step 2: Save as HTML file

Then select "File (F)->Save as (A)" and the file name is php.html

F4915A5B-FC98-46E8-ADD2-81B45C3BDBF3.jpg

When you save an HTML file, you can use either the .htm or the .html extension. There is no difference between the two, it's entirely up to you.

Save this file in an easy-to-remember folder, such as php

Step 3: Run this HTML file in the browser

Start your browser, and then select the "Open File" command from the "File" menu, or double-click your HTML file directly in the folder.

The running result will be similar to the following:

index2.png

Notepad++ and Sublime Text can also be used with the Emmet plug-in to increase coding speed.

Emmet official website: http://emmet.io/