Home > Web Front-end > HTML Tutorial > How to write html file

How to write html file

奋力向前
Release: 2023-01-07 11:47:35
Original
24657 people have browsed it

How to write html files: first create a txt file, and use tags such as "", "

", "" and other tags in the file to build the web page skeleton; then Add the content that needs to be displayed within the "" tag; finally save the file content and change the file suffix to ".html".

How to write html file

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

Manually write an HTML file and write your own web page.

Method Steps

1. First, create a new .txt text document on the desktop.

How to write html file

2. Open the editor text document and copy the following content: into the txt file

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>hello</title>
</head>
<body>
</body>
</html>
Copy after login

How to write html file

3. In the body Add the content you need to output.

<body>
<p>编辑内容</p>
</body
Copy after login

4. After saving with ctrl s, return to the desktop and change the file suffix to .html

How to write html file

Recommended learning: Html video tutorial

The above is the detailed content of How to write html file. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template