HTML Tags Kya Hai ? Types Of Tags In HTML

HTML Tags Kya Hai ? -  So, friends aaj ki iss blog post me aapko me batuunga ki HTML Tags Kya Hai aur saath hi saath me aapko Types Of Tags In HTML ke baare me bhi batuunga. So, hello guys welcome back to Hindi Blogger Buzz. To dosto ye post hamere HTML ( Hyper Text Markup Language ) series ka second part hai. Pichli series me mene aapko btaya tha ki HTML kya hota hai? Aur iss article me aap janoge ki Tags kya hai aur HTML tags kitne types ke hote hai.

To dosto HTML ka introduction to aap sabhi ko pta hi hoga aur nhi pta to aap hamare pichle HTML ke article ko padh sakte ho upar link par click karke. To HTML tags kya hai janne ke liye aapko is blog post ko aakhir tak padhna hoga.
HTML Tags Kya Hai ?
HTML Tags Kya Hai ? 


HTML Tags Kya Hai?



So, html ke baare me to aapko pta hi hai nhi pta to aap hamare pichle series ki post padh sakte ho. HTML Tags ek tarh ke codes hote hai jinhe html ki coding karne ke liye istemaal kiya jata hai. HTML tags in <> brackets ke beech me likhe jaate hai. Har tag ka apna alg alg kaam hota hai. Bina Tags ke HTML coding possible hi nhi hai. 

Tim Berners Lee jinhone document sharing ke liye WWW yaani ki World Wide Web ka aavishkaar kiya tha unhone tab SOFTWARE ENQUIRE bnaya tha. Basically iska kaam tha ek text document ko ek computer se dusre computer tak phochana.  Browser or Server code ke liye Tim Berners Lee ne kuch codes ka aavishkar kiya jinhe istemaal karke inhe command di jaati thi aur hame fir output milta tha.

Yahi code hai HTML Tags inhi codes se HTML ke jariye Web designing ke kaam me liya jata hai. Jaise jab bhi aap web page design karte vakt html ki coding me koi bhi tag likhte ho aur fir use browser me run karvate ho to vaha pe hame output milta hai. Jo ki HTML Tag browser ko command deta hai. Inhi ki vajh se web page ka structure design kiya jata hai. 

Tags Example :
<html> .........</html>
<head>...........</head>
<title.............</title>
<br>
<hr>

Types Of Tags In HTML -

HTML me Tags 2 Types ke hote hai Container Tags and Non-Container Tags. Non-Container tags ko Empty tags bhi khaa jata hai. 

1. Container Tags

Container tags vo tags hote hai jinhe aapko close karna padta hai. Jaise <head>.....</head>. Isme hamne head tag ko likhne ke baad close bhi kiya hai. Agar aap Container tags ko close nhi karoge to vo tags apna work nnhi karenge. 

Some Container Tags Are: 
HTML Tag - <html> .........</html>
Head Tag - <head>...........</head>
Title Tag - <title.............</title>
Body Tag - <body.........</body>
Paragraph Tag - <p>...............</p>
Bold Tag - <b>.......................</b>
Anchor Tag - <a href.........> ................... </a>

2. Non-Container Tag or Empty Tag

Non-Container Tag or Empty Tag single hote hai. Matlab inhe aapko close nhi karna hota hai. Ye Container Tags se ulta kaam karta hai. Jaise Container me close karna hota hai or isme close nhi karna hota.

Some Non-Container Tag are:
Line Break Tag - <br>
Horizontal Ruler Tag - <hr>
Image Tag - <img>


Types Of Tags In HTML
Types Of Tags In HTML


Tags Uses and Examples - 

Container Tag - 

1. HTML Tag <html> -

Ye tag HTML coding ka main tag hota hai. Aur ye container tag hai matlab ki ise aapko close karna hota hai. Firstly ise likhne ke baad hi aur tags ka istemaal hota hai. Aur dusre HTML tags iske under aate hai. 
Example:

<html>
<head>
<title>...............</title>
</head>
<body>
........................................
......................................
..............................................
...............................................
</body>
</html>

2. Header Tag <head> -


Basically header tag web page ke header area ke liye istemaal kiya jata hai. Ise code karne ke baad aap header section me title ya koi dusra tag lagana chahte ho to lga sakte ho. 
Example:

<head>
<title>.................</title>
</head>

3. Title Tag <title> -

Ye tag title dene ke liye istemaal kiya jata hai. aur ye head tag ke beech me lagya jata hai. 
Example:

<title>..........................</title>

4. Body Tag <body> -

Body Tag ka istemaal content area ke liye hota hai. Is tag ke andar hi web page ka sara content likha jata hai. Is tag ko HTML coding me sirf ek hi baar istemaal kiya ja sakta hai.
Example:

<body>
.......................................
......................................
........................................
.......................................
</body>

5. Paragraph Tag <p> -

Paragraph tag ka istemaal content me paragraph ke liye istemaal kiya jata hai.
Jab bhi aap ek pragraph shuru karo to is tag ko lga do aur jha pe paragraph khatm ho rha ho vaha par iska closing tag lga do.
Example:

<body>
<p>........................................................................
..............................................................................
..........................................................</p>
</body>

6. Anchor Tag <a> -

Anchor tag ka istemaal link dene ke liye kiya jata hai. Jaise agar aap chahte ho ki aapke content me se kisi ek particular word pe agar koi click kare aur kisi bhi external ya internal page pe jaaye to aap is tag ka istemaal kar sakte ho. 
Example:

<body>
.................................................
.........................<a href="Your Link Here"> Your Text Here </a>........
......................
</body>

Non-Container or Empty Tag -

1. Line Break Tag <br> -

Line Break Tag ka istemaal apke content ke line me break dene ke liye kiya jata hai. Jab bhi aapki likhi hui ek line khatm ho jaati hai to aapko line break tag ka istemaal karna chahiye. Isse text straight linne me nhi rheta line by line ata hai jisse ki aapke web page ki width control me rehti hai.
Example:

<body>
.........................................................<br>
..............................................................
</body>

2. Horizontal Ruler Tag <hr> -

Horizontal Ruler Tag web page me Horizontal line dene ke liye istemal kiya jata hai. Basically ye tag thematic break specify karta hai. Agar paragraph likhte vakt aap apne topic ko change karte ho to is tag ko lga ke aap un paragraph ke beech me horizontal line create kar sakte ho. 
Example:

<body>
....................................
..................................
<hr>
.................................
...................................
</body>

3. Image Tag <img> - 

Image Tag ka istemaal web page me image add karne ke liye kiya jata hai. src, alt, width, style, height ye sab img tag ke attributes hai jo ki image tag ke saath istemaal kiye jaate hai image ki size aur style adjust karne ke liye.
Example:

<body>
....................................
..................................
<img src"......">
.................................
...................................
</body>
HTML Tags Kya Hai ?
HTML Tags Kya Hai ?


Conclusion -

So, friends I hope ki aapko ye article pasand aya hoga. Aur aap samjh gye hoge ki HTML Tags Kya Hai ? Aur  Types Of Tags In HTML. Mene pura try kiya ki me aapko samjha sakoo in dono ke baare me. Hamare HTML series ka ye dusra part tha aur iske baad bhi HTML se related me aapke liye article lekar aaonga. 


To dosto aaj ke liye bass itna hi. Me aage bhi aapke liye informative article publish karta rahoonga jisse ki apko kuch na kuch naya sikhne ko milega. Agar aap tech se related kuch bhi puchna chahte ho to niche comment karke mujhe jarur btana me apke question ka answer reply jarur karoonga. And I will see you guys in the next one.


No comments:

Post a Comment