Get the App
SLTechnology News&Howtos  ›  Development  › 

How to comment out html code

Shulou Source: shulou.com Published: 2022-06-03 15:09:09 11月14日 Update

This article will explain in detail how to comment out the html code. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

Comment out the method of html code: 1, open the html file with the editor; 2, create three new div layers; 3, use the "" way to comment on the html code.

This article operating environment: 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 following figure.

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

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

Open the index.html file with a browser, the file display effect is as follows, you can see that the display of the three color layers is still very obvious.

The annotation in html is carried out with "", and the following editor annotates the black layer in the middle, as shown in the following figure.

After refreshing the page, you can find that the layer of comments is not displayed on the front-end page, and the comments are complete.

This is the end of this article on "how to comment out html code". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Tags: Comments code files three articles more editor color black and will good practical obvious content front end effects file name document article way Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS NVidia Docker MySQL Apple