How to make HTML code inactive with comments

后端 未结 7 1019
慢半拍i
慢半拍i 2020-12-15 06:00

I have some HTML code on a page that I don\'t want to erase, but make inactive for the short term. How can I make the browser ignore parts of the page in the same way the

7条回答
  •  误落风尘
    2020-12-15 06:41

    HTML Comments:

    
    

    See Reference

    CSS Comments:

    /* This style will not apply */
    

    See Reference

    JavaScript Comments:

    // This single line JavaScript code will not execute
    

    OR

    /*
       The whole block of JavaScript code will not execute
    */
    

    See Reference

提交回复
热议问题