HTML Attribute In Hindi :- HTML Attribute Ko Ham HTML Tag / Elements Ke Under Istemal Karte Hai Agar Aap Kisi Website Ya Web Page Mai Image Add Karte Hai , to Aap Use is tarah se add Karenge | lekin agar aapko Us Image Ki Width,Height , URL ,Alt Test, etc . Set Karna Hoto Aap Kaise Karenge | Ans :- Aapko HTML Attribute ka Istemal Karna Hi Padega Image Mai Height , Width etc add karne ke Liye |
HTML Attributes HTML Tags Ke Bare Mai Addtional Information Provide Karate Hai. HTML Attributes Ka Istemal HTML Tags Ki Characteries Ko Define Karne Ke Liye Kiya Jata Hai |
HTML Attribute In Hindi
Contents
HTML Attributes KO HTML Tags ke Under Hi Rakha Jata Hai. Yani Ke Kahe To Attribute Hamesha Start Tags ke Bad Hi Under Declare Hoga | Ise Or Bhi Accha Understand Karne Ke Liye Ham Kuch Example Dekhte Hai |
HTML Attributes Or Tags Mai Kiya Difference Hai ?
Attribute Or Tags Mai Ham Kuch Example Ke Sath Difference Dekhte hai |
HTML Tags | HTML Attributes |
---|---|
<a> | href |
<img> | src , width and height , alt |
<p> | style , title |
For Example:
<img src="https://source.unsplash.com/user/erondu/1600x900" alt="Image Error" >
Upper Diye Gaye Program Mai <img ke Bad src ek Attribute Hai |
Types of Attributes in Html In Hindi
HTML Attributes 4 Types Hote Hai |
- Required Attributes
- Optional Attributes
- Standart Attributes
- Event Attributes
Syntax of an HTML Attribute
All attributes 2 parts Se Mil kar Bane Hote Hai |
- Attribute Name.
- Attribute value.

- Attribute Name : Name Ek Property Hai , Jise Aap Set Karna Chahte Hai | For Example:- Image Ko Extra Configure Karne ke Liye src Attribute ka Istemal Kiya Jata Hai | To Yaha Par Image Tag Ke Attribute Ka Name src Hai | Jiska Istemal Ham Image Ko Extra Configure Karne Ke Liye Karenge |
- Attribute Value :- Jo Aap Property Ke Duvara Us Element mai Set Karna Chahte Hai | Value Ko Hamesha quotation(” “) ke under Likha Jata Hai | Upper Diye Gaye Image Or Example mai Dekh Sakte Hai | Attribute Ki Value URL Hai, Jaha Par Aap Image Ka URL set Karne Par Web Page Mai Image Show Hone Lagti hai |
Example-:
<! DOCTYPE html> <html> <head> <title> HTML ATTRIBUTE IN HINDI </title> </head> <body> <img src="https://source.unsplash.com/user/erondu/daily" width="500" height="600"> </body> </html>
Ab Tak To Thora Bahut Aapko Kuch Samanjh Jarur Aaya Hoga Ki HTML attribute Kiya Hota Hai ? Or Iska Istemal Ham HTML Elements Ko Additional Ingormation Provide Karne Ke Liye Kasie Kar Sakte Hai |
HTML Attribute List in Hindi
Ab Ham HTML Attribute Mai Ko One By One Dikhte Hai Jo Jyadatar Istemal Hote Hai |
1.href Attribute
Html Link Ko <a> se define Kiya Jata Hai । <a> tag Mai link ko specified Karne Ke Liye href attribute Ka Istemal Hota Hai |
<a href="https://masterprograming.com/">This is a My Website</a>
2. src Attribute
HTML Mai Image Add Karne Ke Liye Ham <img> Tag Ka Istemal Kiya Jata Hai | src img tag ka attribute hai | Image ka source address set karne ke liye src attribute ka istemal kiya jata hai |
<img src="https://source.unsplash.com/user/jackie/likes/100x50">
3. Style
Style Attribute ka istemal kisi Tag par Inline CSS Rule Apply karne ke liye kiya jata hai |
<p style="color:red">This is a red paragraph.</p>
4. Width and height Attribute
HTML Mai Image Ka Aakar Yani Size Set Karne Ke LIye Size attribute ka istemal hota hai | size attribute ki help se image ki height or width set ki jati Hai |
<img src="https://linkimage.com/media/000/90/large_linkimage_72620_lowres.jpg" width="500" height="600">
5. ALT attribute
ALT Attribute ka istemal Ek Image Ke Bare Mai Alternative text likhne ke liye kiya jata hai | yah Text Picture Ke Show Nhi Hone Par Dikhai Deta Hai|
<img src="img_typo.jpg" alt="Girl with a jacket">
6. title Attribute
Title Attribute Kisi element Ke Bare Mai extra information provide Karta Hai । jab mouse Us element ke upper leyaya jata hai, Jisme title attribute Istemal Hua Hai, To set Ki Gari Imformation tool-tip text ke rup mai show Ho Jati Hai |
<p title="I'm a tooltip"> This is a paragraph. </p>
7. lang Attribute
Is Attribute ka Istemal Content Ki Language Ko Define Karne Ke liye Kiya Jata Hai. Is attribute ko Ham HTML Element Par Apply Karte Hai |
<! DOCTYPE html> <html lang="hi-ind"> <head> <title> lang attribute example </title> </head> </html>
8. Class
Class Attribute bhi ID Ki Tarat Hi Hota Hai . Iska Istemal Ek Element Ki Class Define Karne Ke Liye Kiya Jata Hai |
Attribute In HTML In Hindi

Read Also :- HTML Elements