HTML in Hindi – HTML Frames
- Introduction to HTML frames in Hindi
- Creating HTML frames in Hindi
- Introduction to frameset tag in Hindi
Introduction to HTML Frameset
अगर हमे किसी web page को section मे divide करना चाहते है | तो <frameset> tag का use कर सकते है और divide किये गये sections को HTML frames भी कह सकते है। और हर section अलग अलग web page को represent करता है |
किसी एक frame में आप header create कर सकते है तो किसी दूसरे frame में आप menus create कर सकते है। और इसी प्रकार से एक web page को footer बनाया जाता है और दूसरे web page को main window की तरह दिखाया जाता है।
Frames को सभी browsers support नहीं करते है और Frames को बहुत कम use किया जाता है। frames मे बनाये गये web page cell मे देखने पर problems आ सकती है। Frames की वजह से computers पर web page अलग अलग तरीके से दिखाई देता है।
Create a HTML Frames
जब हम frames का use करते है तो <body> tag का use नहीं करते है। और किसी भी web page में frames बनाने के लिए हम <frame> tag का use कर सकते है। और <frameset> tag के सिर्फ 2 ही attributes होते है। rows और cols और इनकी value हमेसा % मे दी जाती है |
उपर दिए गये example में एक page को 3 frames में divide किया गया है। <frame> tag के द्वारा हम अपने web page divide करते है और divide किये गये section मे web page open करने के लिए src attribute का use कर सकते है |
HTML Frame Attributes
html मे <frameset> tag के कुछ attributes भी है जिनका use करके हम frames को manage कर सकते है।
Rows Attribute
row attribute का use web page को frames मे divide करने के लिए किया जाता है यानि हम web page को कितने भागो मे divide करना चाहते है इसका value row attribute मे देते है |
Cols Attribute
cols attribute के द्वारा columns बनाये जाते है यानि आप कितने columns का frameset create करना चाहते है इसका value cols attribute मे देते है और इसके साथ columns की size भी define की जाती है।
frameborder Attribute
frameborder Attribute के द्वारा frames के border show या hide कर सकते है और इनकी value yes या no मे दी जाती है |
framespacing Attribute
framespacing Attribute के द्वारा frames के बीच space create किया जाता है। या बनाया जाता है
SRC Attribute
SRC attribute के द्वारा हम अपने web page का address define करते है
noresize Attribute
Noresize attribute के द्वारा अपने frames को manage करते है यानी frame को resize कर सकते है और इसकी value हम noresize attribute मे देते है |
Scrolling and name Attribute
Scrolling attribute के द्वारा scroll को manage किया जाता है और name attribute के द्वारा frames को name दिया जाता है | अब निचे दिये गये code को देखे |
Targeting Frames
अगर किसी page को एक frame मे open करना चाहते है तो targeting attribute का use कर सकते है जिसका use एक frame से दुसरे frame मे web page को open करने के लिए किया जाता है |
मगर उसके लिए <frame> tag बनाना पड़ता है फिर उसके बाद frame का नाम define करना पड़ेगा तभी आप एक frame से दुसरे frame मे link बना पाएंगे |
अब निचे code दिया जा रहा है इसे देखे और समझे |