" method to comment out the html code."/> " method to comment out the html code.">

Home  >  Article  >  Web Front-end  >  How to comment out html code

How to comment out html code

藏色散人
藏色散人Original
2021-09-13 14:46:4712199browse

How to comment out the html code: 1. Open the html file with an editor; 2. Create three new div layers; 3. Use the "" method to write the html code Comments are enough.

How to comment out html code

The operating environment of this article: Windows7 system, HTML5&&CSS3 version, Dell G3 computer.

How to comment out the html code?

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 comment out html code

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 out html code

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

How to comment out html code

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 out html code

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

How to comment out html code

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 out html code

Recommended study: "css video tutorial"

The above is the detailed content of How to comment out html code. 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