.

Thursday, March 03, 2016

Lesson 9: Html code me comment kaise likhe

author photo

learn html in hindi


How To Write Comment In Html In Hindi


Html me comment tag kaise use kiya jata hai aur kyo use kiya jata hai. Html me comment likhne ke 2 type main aapko bataunga. Ek to comment tag aur dusara comment ke normal style se.

Last lesson me aapne html formatting ke bare me jana. Lekin maine aapko bahut si text format ke bare me nahi bataya hai. Wo is liye. Kyo ki hame Html seekhna hai kewal blogging ke purpose ke liye. Html code ko samjhna aur widget banana. Jisme unka koi use nahi tha. Hum kewal un lesson ko seekhenge jo hamare kaam ke hain.

Comment Ka use kyo karte hain:


Html ke code ke beech me comment ka use kyo kiya jata hai. Ye main bhi pahle bahut sochta tha. Lekin jab maine programming seekhi thi tab mujhe comment ka asli matlab samjh me aaya tha.


Darasal jab coding karte hain to codes me 10000 lines ho jati hain. Ya kabhi kabhi isse bhi jyada. To hamne kis kaam ke liye kaun si code line likhi hai usko batane ke liye hame comment ka use karna hota hai. Kabhi kabhi comment hamare code ko search karne me bhi help karte hain. Jaise aap agar Head section ko likh rahe hain to aap Comment me “Head section” ka istemaal kar sakte hain. Jo ki search me help karta hai.


Comment Kaise kare:


Html me comment ke 2 tareeke main aapko bataunga. Pahle hum normal tareeke ko dekhte hain. Comment likhne ke liye hame line ko <!--  and -->  ke beech me likhna hota hai. Fir aapko chahe multi line me likhna ho ya single line me. Lekin dhyan dene ki baat yeh hai ki isme koi gap nahi hona chahiye. Chaliye ise hum ek program ki help se samjhte hain.



<!DOCTYPE html><html>
<head>
<title>Html Comments</title>

</head>
<body>

<p>Digitonly.com par blogging seekhe</p>
<!--p tag ka use paragraph likhne ke liye kiya jata hai -->

</body>
</html>





Jab hum iska output dekhenge to aapko kewal “Digitonly.com par blogging seekhe” hi dikhayi dega. Aapko baaki ka text nahi dikhayi dega. Jo maine neeche “p tag ka use paragraph likhne ke liye kiya jata hai ” likha hai wo comment hai. Use hum output me nahi dekh sakte. Ab iska output dekhte hain.



html commenting in hindi



Jaisa ki aapne dekha comment me likhe gaye text ko hum nahi dekh pa rahe hain.

Comment Element :


Html me comment likhne ka dusara tareeka bhi hai jisme hum <comment> element ka use karte hain. Isme hame dono tags use karne hote hain. Lekin ye tareeka har browser me kaam nahi karta hai. Isko aap apne browser me try kar sakte hain. Agar kaam nahi karta to aap pahle wala tareeka use kar sakte hain. Isi karan se ise commonly use nahi kiya jata hai. Chaleye same program ko hum is tareeke se likhte hain.



<!DOCTYPE html><html>
<head>
<title>Html Comments</title>

</head>
<body>

<p>Digitonly.com par blogging seekhe</p>
<comment> p tag ka use paragraph likhne ke liye kiya jata hai </comment>

</body>
</html>




Ab iska output aap khud de check kare. Aap practice bhi karte rahe aur old lesson bhi padhte rahe. Jisse html aap kabhi bhule nahin. Next lesson bahut hi shandar hone wala hai. Jisme main Html me image lagana bataunga. Jisme image lagana, image height width change karna, image border ke bare me bataunga.


Aapko agar koi question poochna hai to comment karke aap punch sakte hain. Hamare lesson share karke dusaro ki bhi help kare. Agar aapko pasand aata hai to aap like bhi kare.


This post have 2 comments

avatar
Sandeep Singh delete March 03, 2016 9:31 pm

Thanx sir 9 lesson post karne ke liye
bahut ache treeke se beta rahe ho

Reply
avatar
Digit Only delete March 03, 2016 10:13 pm

your welcome, maine aapse contact kiya but koi reply nahi mila.

Reply


EmoticonEmoticon

Next article Next Post
Previous article Previous Post

Advertisement