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.
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.
#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.
3. Create three new div layers and set the layer colors to red, black and green respectively.
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.
5. Use "" for comments in html. Below, I will comment on the black layer in the middle, as shown in the figure below. Show.
#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.
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!