Quazi Quazi - 1 year ago 148
HTML Question

How to make HTML code inactive with comments

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

works in some programming languages?

Answer Source

Behold HTML comments:

<!-- comment -->


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. :)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download