Home > Web Front-end > Front-end Q&A > How to make comments in html files

How to make comments in html files

藏色散人
Release: 2023-01-03 09:31:25
Original
8034 people have browsed it

How to add comments to html files: first create an HTML sample file; then create three new div layers; and finally comment via "".

How to make comments in html files

The operating environment of this article: windows7 system, HTML5&&CSS3&&Sublime editor version 3.2.1, Dell G3 computer.

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

How to make comments in html files

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 make comments in html files

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

How to make comments in html files

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 make comments in html files

Use "" to annotate the html. The following editor will annotate the black layer in the middle, as shown in the figure below.

How to make comments in html files

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 make comments in html files

【Recommended learning: html video tutorial, CSS video tutorial

The above is the detailed content of How to make comments in html files. 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