HTML Comment tag, html css, html css tutorial for beginners, html css full course, html for beginners, html full course, css tutorial for beginners, css full course




HTML mein comments ko define karne ke liye `<!-- -->` tag ka use hota hai. Comments web page ke visible content mein show nahi hote hain. Yeh tags web developers ke liye helpful hote hain kyunki inka use code ko document karne, temporary notes likhne, ya kisi specific section ko explain karne ke liye kiya ja sakta hai.

Comments ko HTML code mein is tarah se likha jata hai:

```html
<!DOCTYPE html>
<html>
<head>
    <title>HTML Comments Example</title>
</head>
<body>
    <h1>This is a Heading</h1>
    
    <!-- This is a single-line comment -->
    <p>This is a paragraph.</p>
    
    <!-- 
        This is a multi-line comment.
        It can span multiple lines.
    -->
    <p>This is another paragraph.</p>
</body>
</html>
```

Is example mein:
- `<!-- This is a single-line comment -->`: Yeh ek single-line comment hai.
- `<!-- This is a multi-line comment. It can span multiple lines. -->`: Yeh ek multi-line comment hai jo multiple lines cover kar sakta hai.

Comments ka use karke code ko explain karna, kisi section ko temporarily disable karna, ya notes add karna asaan ho jata hai. Comments browser mein render nahi hote, to inka user experience par koi impact nahi hota.

Comments