HTML Elements in Hindi [lesson – 4] – HTML Tutorial In Hindi

Html Elements in Hindi
Html Elements in Hindi

Hey Readers To Html tutorials ke lesson 4 me aapka welcome hai. Aaj ke is lesson me hum baat karenge Html elements ke baare me. Html me elements kis type ke hote hain. Ya phir hum kaise html me elements ko define karte hain to bina time waste kiye shuru karte hain Html elements in Hindi, Html tutorial in hindi

Also Read:

HTML Introduction in Hindi

HTML Editors in Hindi

HTML Basics in Hindi

HTML elements in Hindi

Hum usko html element keh skte hain jisme ek start or end tag ho. Jaise ki humne pehle bhi discuss kiya tha ki Html me tags hote hain or jo bhi tag hum open krte hain usko close bhi karna hota hai.

Hum Basically Har ek cheez to jo start or end tag ke beech me aati hai usko html elements kehte hain.

<tagname> Yahan Aane Vaali Har Cheez Html Element Hai </tagname>

Jaise hum Headings ke Liye Aise Tag Use krte hain .

<h1>Yeh Pehli Heading Hai </h1>

To upar likha ye code poora ka poora ek html element hai.

Nested Elements in Html Hindi

Nested ka matlab hai ki ek element ke andr dusra element. Aayiye isko achhe se smjhte hain. Jaise ki humne pehle discuss kiya ki tags ke andr vaale har cheez ek element hai. To vaise hi hum ek tag ka use karte hain html code ko likhne ke liye or us tag ka naam hai <html> Content…</html> or iske beech me hum dusre tags daalte hain jaise <title>Apke Page Ka Title</title> . To yahan element ke andr ek or element bn gya jise hum nested elemet kahenge. Chaliye isko ek example ke saath smjhte hain .

Example

<! Doctype html>

<html>

<head>

<Title>My First WEbsite</Title>

</head>

<body>

<h1>1st Heading</h1>

<p>1st Paragraph</p>

</body>

</html>

Example Explanation

Ab Yahan aap Upar Example me dekh skte hain ki sabse pehle <!Doctype html> ka tag jo ki hum isliye use krte hain taaki hum browser ko bta skein ki humara html code html5 version ka hai. Uske baad humne use kiya hai <html> tag. Jo hum kisi bhi html code ko likhne se pehle lgaate hain. Ab aap upar dhyaan dijiye humne </html> ye tag sbse last me lgaya hai. Matlab ki iske andr baaki or kitne saare tags use huye hain jaise <title> tag ya <body> tag or body ke andr bhi <h1> tag or <p> tag. To inhi sab ki ko hum nested elements kehte hain. Jo ek element ke andr dusre element hote hain.

Empty Elements in Html Hindi

Jin elements me koi bhi content nahi hota vo empty elements hote hain. Ab aap soch rahe honge ki aisa kon sa element hai jisme content nahi hota. To iska simple sa answer hai ki jis tag ka end tag nahi hota yaani uske andr koi content nahi hai to vo ek empty element hua. Or iska example hai <br> tag. Ye tag line ko break karne ke liye use hota hai. Jaise ki aapko kisi bhi paragraph ko end krke next line se likhna shuru krna hai to aap vahan <br> tag ka use karoge.

Khaas baat ye hai ki is tag ka koi bhi end tag nahi hota. To isko hum empty element bhi keh skte hain.

Important Things For Using Tags in Hindi

  • Hamesha lowercase me tags ko define karein. Iska matlab hai ki hamesha small alphabets me hi aap tags ko define karein. Vaise to html me <H1> or <h1> ka same meaning hai kyuki html language case sensitive nahi hai. Par bhi kuch rules ki vajeh se hamesha small alphabets me tags ko define karein jaise <h1>.
  •  Jab bhi aap html me code krenge to kabhi bhi end tag ko na bhulen. Agar aap code me ye type krte hain ki “<p> Ye Paragraph hai “ bina end tag ke to ho skta hai aapke browser me sab kuch thik dikhe par major level par ye aapko danger error de skta hai. To is cheez ka hamesha dhyaan rakhein.
  • <br> tag ka koi bhi end tag nahi hota. Is tag ko aap line break karne ke liye use kar skte hain

To guys Html elements in hindi ke is post me itna hi tha. I hope aapko kuch naya seekhne ko mila hoga. Agar aapko ye post achhi lagi ho to aap apne family or friends ke saath isko share kar skte hain. Or iske allawa agar aapke paas koi suggestion ya question hai to aap neeche comments section me puch skte hain.

About Rishabh Pathania 24 Articles
I am full time blogger and love to write about technology and online money.

Be the first to comment

Leave a Reply

Your email address will not be published.


*