Type "---" followed by ">" (no quotes and no spaces) at the end of the block of text you want to hide. This closed comment tag ensures that the HTML code between the open comment tag and this point will be hidden when viewed with an Internet browser.
How to hide text in HTML?
Comments are used to hide content. To create hidden comments in HTML, we add <! --- tag and end it with -- >. Whatever comes inside this tag it is hidden.
How to hide code in CSS?
You can hide an element in CSS using the CSS properties display: none or visibility: hidden . display: none removes the entire element from the page and mat affect the layout of the page. visibility: hidden hides the element while keeping the space the same.
How do I hide a section of code?
To collapse and hide a section of code
The #Region block can be used multiple times in a code file; thus, users can define their own blocks of procedures and classes that can, in turn, be collapsed. #Region blocks can also be nested within other #Region blocks.