HTML\CSS\JS comments

The content after the comment is not displayed. The comment should be written in a standard way, because the comment is written for programmers. If you write it in a random way, you may not be able to understand it later. Therefore, write the comment standardly, write more comments, but be concise Briefly write

HTML
html single-line comments and multi-line comments are the same, both<!-- -->


   <!--可以把注释写在这里面  -->
    <!-- 
        单行
        或者
        多行
        都可以
     -->

CSS
css comments are the same for single-line and multi-line comments, both are/* */

/* 单行注释 */
        /* 
        多行注释
        多行注释
        */

The JS
JS Notes into single-line and multi-line comments, shortcut keys appearing when a single line is
a single row //
multi-line /* */
single-line comment: line of code is generally used in the above
multi-line NOTE: The above function is generally used in a piece of code or

Guess you like

Origin blog.csdn.net/weixin_44401120/article/details/91876091