Frame in html in hindi-फ्रेम html क्या है?

हेल्लो दोस्तों! आज के इस पोस्ट में आपको Frame in html in hindi के बारे में बताया जा रहा है की क्या होता है और की काम करता है तो चलिए शुरू करते है

Html frame का परिचय

किसी वेब पेज को कई सेक्शन(section) में डिवाइड किया जा सकता है इन sections को आप frames भी कह सकते है ये section को  आप frames भी कह सकते है ये section एक दुसरे से independent होते है

हर section एक अलग वेब पेज को represent करता है वेब पेज को कई section में डिवाइड करके उन section में दुसरे webpage के अन्दर कई webpage को show करा सकते है यानी हर section में एक अलग webpage को load किया जाता है

किसी एक फ्रेम में आप हैडर(header) create कर सकते है और दूसरी frame में menus को create की जा सकती है ऐसे ही एक webpage को footer बनाया जा सकता है और दूसरी webpage को main विंडो(window) की तरह ही प्रयोग किया जाता है

frame को सभी वेब ब्राउज़र को support नहीं करता है और frames वाले webpage को किसी cell पर देखने में problems आ सकती है frames की वजह से अलग अलग computers पर webpage अलग अलग तरीके से दिखाई देता है इसलिए frame में बहुत कम प्रयोग किया जाता है

creating html frames

जब आप frames का प्रयोग करते है तो <body> tag का प्रयोग नही किया जाता है किसी भी webpage में frame डिफाइन करने के लिए <frameset> tag का प्रयोग किया जाता है इस tag के rows और cols 2 attributes होते है इन attribute की वैल्यू में दी जाती है यदि एक webpage को 100% माने तो जितनी वैल्यू आप देंगे वह frame उतनी ही जगह cover करता है

rows attributes से आप webpage को row में divide करते है और cols attribute से webpage में columns को create किये जाते है

<html>
<frameset rows=”10,80”>
<frame src=”mywebpage page.html1”>
<frame src=”myotherwebpage.html”>
</frameset>
</html>

इस coding के द्वारा आप webpage पर 2 frames में divide किया जा सकता है <frame> tag के द्वारा individual frames को configure किया जाता है

<frame> tag के src attribute के द्वारा आप webpage का url डिफाइन करते है और कौन सा frame कहा show होगा यह उस frame के आर्डर पर depend करता है

जिन जिन url आप देंगे वो automatically उन frames में load हो जायेगा

इस script के द्वारा आप निचे दिया गया webpage generate होगा

html frames attributes

<frameset> tag के कुछ attribute होते है जिन्हें प्रयोग करके आप सारे frames को configure कर सकते है

  • cols-आप कितने columns का frameset create करना चाहते है तो ये इस attribute के द्वारा डिफाइन किया जाता है साथ ही सभी columns की साइज़ भी डिफाइन होती है
  • row-आप कितनी rows में frameset से divide करना चाहते है तो ये इस attribute के द्वारा डिफाइन किया जाता है
  • frameborder-इस attribute के द्वारा ये डिफाइन किया जाता है की आप frame का बॉर्डर डिफाइन करना चाहते है या नही इस attribute की yes अथवा no में सिर्फ 2 वैल्यू हो सकती है
  • framesspacing-इस attribute के द्वारा frame के बीच में space डिफाइन किया जाता है

<frame> tag के साथ भी कुछ attribute provide किये गए है जिन्हें प्रयोग करके आप हर frame को separately configure कर सकते है

  • src-इस attribute के द्वारा frame के लिए webpage का address को डिफाइन किया जाता है
  • noresize-इस attribute से आप डिफाइन करते है की frame को resize किया जा सकता है या नही
  • scrolling-इस attribute से आप डिफाइन किया जाता है की frame को scroll किया जा सकता है या नही
  • name-इस attribute के द्वारा आप frame का कोई नाम देते है
<html>
<frameset rows=”90,10”>
<frame src=”html1”.html1” noresize=”yes” scrolling=”no”>
<frame src=”html2.html1” noresize=”yes” scrolling=”no”>
</frameset>
</html>

targeting frames

एक frame से किसी दुसरे frame को टारगेट(target) करने के लिए आप links में target attribute का प्रयोग किया जाता है और उस attribute की वैल्यू के रूप में आप जिस frame में उस लिंक को open करना चाहते है उस frame का name देते है लेकिन इसके लिए पहले आपको <frame src> tag में frame का नाम डिफाइन करना होता है इसके लिए आप name attribute का प्रयोग किया जाता है

<html>
<frameset rows=”90,10”>
<frame src=”html1.html” name=”myframe”>
<frame src=”html2.html” name=yrframe”>
</frameset>
</html>
 <html>
<body>
<a href=www.google.com> target=”yrframe”> yrlink</a>
</body>
</html>

Frame in html in hindi

Frame in html in hindi-फ्रेम html क्या है?

निवेदन:-आप सभी छात्र –छात्रों से निवेदन है की अगर आपको ये Topic(Frame in html in hindi) अच्छा लगा हो तो कृपया आप इस वेबसाइट के बारे में अपने दोस्तों को जरुर बताये | अगर कोई topic से संबधित प्रश्न हो तो कमेंट्स(comments) आपके लिए ही बना है और किसी Subject के लेकर भी कोई प्रश्न हो तो कमेंट करे

Leave a Comment