HTML Image tag in Hindi

Search Posts
1679686582-Default_image_for_courses.jpg

HTML Image tag in Hindi


HTML Image in Hindi – वेब पेज में किसी Image या Picture को add करने के लिए <img> tag का use किया जाता है। Image tag का उपयोग कर के वेब पेज को और अधिक attractive बनाया जा सकता है। Image Tag में सिर्फ open tag होता है इसे क्लोज करने के लिए opening tag के अंत में / (slash mark) का उपयोग करते हैं।

HTML Image tag का Syntax –

HTML Image Tag के Attributes

• src attribute
• alt Attribute
• Width & Hight Attribute
• Style Attribute

HTML Image src Attribute in Hindi

HTML Image tag का सबसे important attribute src होता है इसका पूरा नाम Source है। इस attribute की मदद से हम किसी image की लोकेशन URL के रूप में डालते हैं। इस URL से ही image display होती है। इस URL में वह location डाली जाती है जहाँ आपकी image स्टोर होती है।

जैसे अगर आपकी image वहीँ स्टोर है जहाँ पर वेब पेज स्टोर है तो आप image का नाम उसके टाइप के साथ लिख सकते हैं। अगर किसी image किसी फोल्डर के अन्दर है तो उस फोल्डर का नाम भी image के नाम के साथ में आता है। अगर image किसी और website से लेनी है तो URL में उस image का full URL आएगा।

HTML href का Syntax –


HTML Image alt Attribute in Hindi

HTML Image tag का दूसरा attribute है alt. यह alternate text display करता है। जब कभी browser में image show नहीं होती या load नहीं हो पाती तो इस attribute के अन्दर लिखा हुआ text, image की जगह show होता है। अगर alt attribute नहीं देते हैं तो image load न होने पर सिर्फ एक break image का icon show होगा।

HTML href का Syntax –


HTML Image width & height Attributes in Hindi

HTML Image tag के अन्दर ही हम उसकी लम्बाई और चौड़ाई (Height & Width) दे सकते हैं। इसके लिए आप या तो अलग से इसकी height और width px(pixel) में दे सकते हैं या fir इसके लिए आप style attribute का भी उपयोग कर सकते है।

HTML href का Syntax –


HTML Image Style Attributes in Hindi

HTML Image tag के लिए या लगभग सभी tag के लिए हम style attribute का उपयोग करते हैं। इस attribute की मदद से आप किसी भी tag या element का style define कर सकते हैं इसे inline CSS कहते हैं।

HTML href का Syntax –

नोट – Style और CSS के बारे विस्तार से हमारे अन्य chapters और tutorials में समझाया गया है।
PHP" method="POST" target="_blank">

Example of HTML image tag & Its Attributes in Hindi


नोट – HTML image tag के अन्दर हम कई तरह (different format) की images को अपने webpage में add कर सकते हैं। जैसे GIF image, PNG image, JPG image आदि।

Author : Read Rife

You May Also Like



Leave a Comment

Please enter your name.
Please enter a valid email.
Please enter your comment.

Comments