Home > Web Front-end > HTML Tutorial > How to comment code in html

How to comment code in html

coldplay.xixi
Release: 2023-01-03 09:27:25
Original
10468 people have browsed it

How to comment the code in

html: first modify the file name and improve the code; then create three div layers and use "" to comment; finally refresh the web page.

How to comment code in html

The operating environment of this tutorial: windows7 system, html5 version, DELL G3 computer.

How to comment the code in html:

1. Create a new txt document and change its file name to the html file of "index.html", as shown below shown.

How to comment code in html

#2. Open the html file with an editor, improve its standard html5 code, the code is as shown in the figure below, and modify the title.

How to comment code in html

3. Create three new div layers and set the layer colors to red, black and green respectively.

How to comment code in html

4. Open the index.html file with a browser. The file display effect is as follows. It can be seen that the display of the three color layers is still very obvious.

How to comment code in html

5. Use "" for comments in html. Below, I will comment on the black layer in the middle, as shown in the figure below. Show.

How to comment code in html

#6. After refreshing the web page, you can find that the annotated layer is not displayed on the front-end page and the annotation is completed.

How to comment code in html

Related learning recommendations: html video tutorial

The above is the detailed content of How to comment code in html. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template