Day #8 : Web Development Journey
Today, I learnt about comment line in HTML..,
An HTML comment is a piece of text or code within an HTML document that is not displayed in the browser. It is used primarily for documentation, explanation, or temporarily disabling parts of the code without deleting it.
Example:
Syntax:
<!-- Comment text goes here -->
Key Characteristics:
Ignored by Browsers: Comments are not rendered on the web page.
For Developers: They provide explanations, mark sections of code, or add notes for other developers.
Cannot Be Nested: You cannot include one comment inside another.
<!-- This is a single-line comment --> <!-- This is a multi-line comment --> <!-- Use comments to explain code or mark sections --> <p>This is a paragraph.</p>
Thank you….😊