- Get link
- X
- Other Apps
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
- Get link
- X
- Other Apps
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
Post a Comment