HTML Comments

Dear Students, aaj ke is Lecture me hum janege HTML comments ke bare main. Yani ke HTML main comments kaise karte hai. Or sath me comments kya hote hai. Types of HTML comments aadi se related ye sare topic ham HTML comments ke lecthure me cover karege.

Lectures Covering Topics

  • Introduction To HTML comments In Hindi
  • What Is HTML comments In Hindi
  • Types To HTML comments In Hindi
  • Multi Lines HTML comments In Hindi

Comment ka matlab hota hai tippani karna. Yani ki kisi special object ke liye kisi khas bat ka kahna eak comment kahlata hai. Real life main hum jab kisi khas person ke liye koi khas bat kahte hai.

To vah us khas bat ko kabhi nahi bhoolta hai. Kyonki vah bat uski importance ke liye boli gayi hai. Wo boli gayi eak khas bat jiske through hum sara moment yad rakhte hai vah comments kahalata hai.

Introduction To HTML Comments In Hindi

Jab hame HTML page main koi Tag ya fir koi khas statements yad rakna ho. To hum uske liye comments ka use karte hai. Kisi program main hum kahi bhi comments likh sakte hai. kisi bhi style sheet main hum one more then comments likh sakte hai.

Comments kisi bhi language main hamare program ke statements ko samjhne ke liye likha jata hai. Hamara likha banaya hua webpage agar koi or bhi pade to aasani se vah us webpage ke code ko samjh sake. Kisi bhi chhote webpage ki style sheet ke coding dekh kar to hum sab us webpage ki style ko aasani se samjh sakte hai.

But agar webpage bahut he bada hua to aap pane code ko he dekha kar nahi samjh payege ki mene ye code kis tegs kis style ke liye likha tha. Aise me humare liye comments eak bahut kaam ke cheej ho sakte hai.

Sabse important bat yah bhi hai ki HTML page main hum comments me jo bhi likhte hai. Or jab hum webpage ko run karate hai wo display par najar nahi aata hai. To ab hum seekhenge ki exam main hume HTML comments ko kaise explain karna hai.

What Is HTML Comments In Hindi

Student’s “HTML comments language are used to provide information about lines of Codes”. Comments ka use hum HTML page ki readability ko badane ke liye karte hai.

Ye HTML page ko explain karte hai or HTML Codes ko samjhne me hamari help karte hai. Comments ko hum delimiters /* example */ ke andar likhte hai. Jaise ki main aapko pahle bhi bata chukka hun ki program main hum kisi bhi jagah comments ko likh sakte hai.

But hum eak Values & Property ke sath kisi comments ko nahi likh sakte hai. Eak HTML page ke andar hum one more then comments ka bhi use kar sakte hai.

Types To HTML Comments In Hindi

HTML comments yani ki language me comments two types ke hote hai.

  1. Single line comments
  2. Multi line comments

Ab neeche hum in comments ke bare me details me padege ke ye single line or multiline comments kya hote hai.

Single Line HTML comments In Hindi

Single line comments ke help se hum sirf kisi eak line ke code ko he commented kar sakte hai. Yah comment Greater then (>) and less then(<) desh desh or exclamation point (!)  se represent kiya jata hai. Isme exclamation point sirf opening tag hai closing tag nahi hai. aapke poore comments ka syntax kuch is tarah se hai. <!– Statement –>

Example of single line comments

Output

html comments in hindi

Aap upar image me dekh sakte hai ki third heading output main show nahi ho rahi hai. kyonki third heading ko commented kar diya gya hai.

Multiline Line HTML comments In Hindi

Multiple line comments ke help se hum eak sath one more then statements ke code ko he commented kar sakte hai. Yani ke eak sath bahut sari line ko commented kar sakte hai. Yah comment slash asterisk  (\* Example *\ ) se represent kiya jata hai.

Example of single line comments

Output

Related Lecture

Dear Students, main aasha karta hun ki aapko HTML comments Ka Lecture padh kar samjh me aa gaya hoga ki HTML  main comments kaise karte hai. Yadi aapako is Lecture se related koi bhi problem hai to aap hume comment karke puch skte hai.

Share This Post On

About Author

Thakur Aman Singh

Hey, I am Aman Singh Tomar from Taj City Agra. Through This Blog I want to share my Knowledge with all of you. Read More >>

Leave a Reply

Your email address will not be published. Required fields are marked *