How to make HTML code inactive with comments

后端 未结 7 1016
慢半拍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:28

    Behold HTML comments:

    
    

    http://www.w3.org/TR/html401/intro/sgmltut.html#idx-HTML

    The proper way to delete code without deleting it, of course, is to use version control, which enables you to resurrect old code from the past. Don't get into the habit of accumulating commented-out code in your pages, it's no fun. :)

提交回复
热议问题