HTML TUTORIAL IN HINDI
- Introduction
- Basic Tags
- First Webpages
- Attributes
- Formatting
- Meta Tags
- Comment Tags
- Images Tags
- Table Tags
- List Tags
- LInk Tags
- List Tags
- Frame Tags
- Block Tags
- Background
- Color
- Fonts Tags
- Form Tags
- Heading
- Marquees
- Embed Multimedia
- Layout
HTML TUTORIAL: COMMENT TAG
Comment tag ka use HTML ke code me comment ya tippni
likhne ke liye kiya jaata hai. Comment ki madat se coding section ko aur ache
se explain kar sakte hai Q ki comment section ko browser neglect kar deta hai.
HTML document me kahi bhi comment tag use kar sakte
haiaur wo hidden rahega.
HTML comments ko <!.... your comment….> ke beech
me likha jata hai. <!…your comment…> ke ander job hi word likhte hai wo
browser me display nahi karta hai. jisse bhut fayda hoti hai user ko samajhne
ke liye ki us particular code ko Q likhi yagi hai.
Comment do tarika hota hai single line comment and much
line comment.
Example of single comment
<!DOCTYPE
html>
<html>
<head>
<title>
Hello word</title>
</head>
<body>
<p>
Hello word </p>
<!--
This is single comment -->
</body>
</html>
|
Result:
Hello word
Example of multiple comment line
<!DOCTYPE
html>
<html>
<head>
<title>
Hello word</title>
</head>
<body>
<p>
Hello word </p>
<!--
This is
single
comment
-->
</body>
</html>
|
Result:
Hello word
Comment jo samjhne ke liye ek tippni dete hai html
document me uske bareme achi tara jaan chuke hai. Ab aage ki tutorial janege
HTML Image tag ke bare me.
Previous: Meta Tags
Previous: Meta Tags
Click here: ImageTag



0 Comments