HTML comments are the most important part of the
code. HTML comments are not displayed in the
browser.
Comments are basically used for clean code so that
if the new person checks your code then he/she can
easily understand your code.
In HTML, comments are denoted by the
<!– and –>
delimiters. Anything
between these delimiters is considered a comment and is ignored by the web browser when rendering the
page.
Example-
Like the above example, you can add comments in your for
every section.
🚀 Try it yourself! Click the button below to run
the code and see the output in action.
HTML Code
Output
jaise rooms ko alag karne ke liye diwaar ki jarurt padti
hai waise hi code ko alg krne ke liye comments ki jarurt
padti hai
HTML comments are commonly used for various purposes,
including:
Documenting and explaining sections of code
Temporarily disabling or “commenting out” a piece of
code without deleting it
Providing instructions or reminders for future
editing or maintenance
Collaborative development, where multiple developers
can add comments to the code for communication
purposes
HTML Comments
In HTML, comments are denoted by the <!– and –> delimiters. Anything between these delimiters is considered a comment and is ignored by the web browser when rendering the page.
Example-
Like the above example, you can add comments in your for every section.
🚀 Try it yourself! Click the button below to run the code and see the output in action.
HTML Code
Output
jaise rooms ko alag karne ke liye diwaar ki jarurt padti hai waise hi code ko alg krne ke liye comments ki jarurt padti hai
HTML comments are commonly used for various purposes, including: