HTML Attributes in Hindi [Lesson 5] – Html Tutorial in Hindi

Html Attributes in Hindi
Html Attributes in Hindi

Html tutrial in hindi ke is lesson me hum seekhenge html attributes ke baare me. Is post me aapko html attributes ki poori jaankari di jaayegi. To chaliye bina time waste kiye shuru karte hain Html attributes in hindi, Html tutorials in hindi

Pichle Lessons Ko Yahan Click Karke Padhein

What is Html Attribute in Hindi

Html attribute hume html elemnt ki addition information provide karwate hain. Or saare html elements me me html attribute ho skte hain ya nahi bhi ho skte hain. Ye zaruri nahi hai ki aap sabhi html elements me attributes ka use karein. Jis element ki aapko addition information deni ho aap vahan attributes ka use kar skte hain. Html Attributes hamesha aapke html elemnt ke start tag me define honge. Ye baat aap hamesha yaad rakhiyega ki html attribute hamesha html element ke start tag me hi use hoga. Mtlb jab aap apne element start krte hain. Html Attributes hamesha name/value ke tag me hi aate hain jaise: name=”value” .

Types of Html Attribute Hindi

Html langugage me humare paas bahut saare type ke attribute hote hain. Ab hum ek ek karke un sabhi attributes ko disscuss karenge. To chaliye shuru karte hain.

Href attribute in Hindi

Aap apne webpage me jab bhi koi link insert krte hain to aapko vo link <a> tag me likhna pdta hai. Jaise ki humne apne pichle lessons me ye discuus kiya hai ki link tag me hum <a> tag ke saath href attribute ka use karte hain. Href attribute link ki location ya destination daalne ke use me aata hai. Neeche diye gyi is image se aapko clear ho jaayega.

Link Tag In Html
Link Tag In Html

Src attribute in Hindi

Src tag hamesha multimedia files ka naam or location daalne ke liye use hota hai. Jaise ki example ke liye maan lijiye aap koi image insert krna chahte hain to aap kuch aisa tag likhenge <img src=”Yahan File ka naam or destination daalen”> to is tag me me aapko src attribute ke baare clear hua hoga. Neeche image me aapko achhe se clear ho jaayega.

Images Tag In Html
Images Tag In Html

Width and height attribute in Hindi

Width or height attribute aapko kisi bhi element ki width or height manage krne ke liye use kiye jaate hain. Example ke liye hum koi image add karte hain or hum chahte hain ki uski width or height hum apne according adjust kar skein to hum in attributes ka use karenge uske liye code kuch aisa hoga. <img src=”image.jpg” width=”150” height=”100” />.

Alt attribute in Hindi

Alt attribute ka matlab hai alternate. Maan lijiye aap koi image insert karte hain apne web page pr or agar aap alt attribute use karenge to aapko 2 fayyde honge. Pehla agar slow internet ki vajeh se agar aapki image load nahi hoti hai to is attribute me jo bhi text aap likhenge vo us image ki jageh show ho jaayega. Or dusra benefit ye hoga ki google images me aapki images rank hongi aapke alt attribute ki vajeh se. Iska code aap aise likhenge <img src=”moneytechnologo.jpg” alt=”Money Techno Logo”width=”150” height=”100” >.

Images Tag In Html
Images Tag In Html

Style Attribute in Hindi

Style attribute aapke html element ki styling ke liye use hota hai jaise color, font, size or aise boht si cheezen. Isko smjhaane ke liye ek example lete hain, maan lijiye ki aap apne paragraph ko red color me likhna chahte hain to aap ye jaante hain ki by default aapke text ka color black hoga par usko red me likhne ke liye aap style attribute ka use karenge. Or uske liye ye tag hoga. <p style=”color:red”> Ye Paragraph aapko red color me dikhayi dega</p>

Style Attribute In Hindi

Lang Attribute in Hindi

Lang attribute hum isliye use karte hain taaki hum apne html document ki language ko set kr skein. Is rag ko hum <html> tag ke andr define karte hain. Language tag ka main puropose hai search engine or screen readers ko btana ki humara html document kis language me hai. Is tag ko hum aise represent karenge.

<!DOCTYPE html>
<html lang=”en-US”>
<body>



</body>
</html>

Title attribute in Hindi

Title attribite hum <p> tag ke andr use karte hain matlab ki hum paragraph ke title ke liye isko use karte hain. Ab hum baat krte hain ki ye title hume dikhega kahan. To mai aapko bta du ki ye title ko aapko tab dikhega jab aap apne webpage ke andr paragraph ke upar mouse ke cursor ko le jaayenge. To aapko vahan dikhega. Matalb jab aap apne mouse ke cursor ko hover karenge paragarph ke upar to aapko vo title dikhega. Is Image me aapko clear ho jaayega ki kaise aap is attribute ko use kar skte hain.

Style Attribute In Hindi

Important Things To Use Attributes in Hindi

Hamesh Apne Attributes ko lowercase alphabets me define karein.

Apne attributtes ko hamesha double quotes ke andar likhein.

Attributs ko hamesha double quotes me define kiya jata hai. Par kayi cases me attributes ki khud ki ek value hoti hai to us time hum single quotes ka bhi use kar skte hain.

About Rishabh Pathania 19 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.


*