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

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

How to write html file

奋力向前
奋力向前Original
2021-09-08 14:15:4124670browse

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>

How to write html file

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

<body>
<p>编辑内容</p>
</body

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!

Statement:
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
Previous article:What are the html5 games?Next article:What are the html5 games?