Often while coding view templates in html, my habit of adding some helpful comments causes lots of time-consuming effort while testing.
Consider this code...
Using in .htmlComment out large sections of HTML (Comment Out Block)
my personal way in a .html file is opening:
Is a workaround to the problem since is not HTML.
Considering your code in .html...
And in a case is HTML inside PHP file using comment tag /* or and close it with */?> . Remember that the file must be .php extension and don't work in .html.
/* hiding code go here */?>
Considering your code in .php...
/*
...
*/?>
Is worth nothing that is not HTML but a common developer practice is to comment out parts of metadata so that it will not be rendered and/or executed in the browser. In HTML, commenting out multiple lines can be time-consuming. It is useful to exclude pieces of template structural metadata containing comments, CSS or code and systematically commenting out to find the source of an error. It is considered a bad practice to comment blocks out and it is recommended to use a version control system. The attribute "type" is required in HTML4 and optional in HTML5.