" 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 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.
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.
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.
Create three div layers and set the layer colors to red, black and green respectively.
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.
Use "" to annotate the html. The following editor will annotate the black layer in the middle, as shown in the figure below.
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.
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!