Artikel Terbaru

header ads

HTML TUTORIAL: COMMENT TAG

HTML TUTORIAL IN HINDI

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
Click here: ImageTag

Post a Comment

0 Comments