-->

Frame, Frameset and Nested Frame in HTML

 

Frame, Frameset and Nested Frame in HTML

एक से ज्यादा HTML Documents को एक ही webpage पर display करने के लिए frames का इस्तेमाल किया जाता है |

NoteFrames को HTML5 से अब हटा दिया गया है l

Rows Attribute (Horizontal Frameset) for <frameset> tag in HTM

Rows attribute में frames के क्रमानुसार rows की size को दिया जाता है |

Cols Attribute (Vertical Frameset) for <frameset> tag in HTML

Cols attribute में frames के क्रमानुसार cols की size को दिया जाता है |

 

Frame All Tags and Attributes

TAGS

ATTRIBUTES

VALUES

DESCRIPTION

Frameset

Rows, cols

px(without px)

 

 

 

 

%

 

 

 

 

*

इसके साथ या इसके बिना दी हुई size ये screen के pixel के हिसाब से होती है l

 

इसके साथ दी हुई size ये screen के resolution के percentages के हिसाब से होती है |

 

इस symbol को देने पर browser द्वारा size को automatically दिया जाता है |

Frameset, Frame

frameborder

1

0

<frameset> और <frame> के frameborder इस attribute से set किया जाता है | frameborder की value '0' या '1' हो सकती है |

Frame

marginheight

PX

marginheight attribute से frame के content को frame के top से height दी जाती है |

marginwidth

PX

marginwidth attribute से frame के content को frame के left से width दी जाती है |

noresize

noresize

Normal frame को resize किया जा सकता है, लेकिन noresize attribute के साथ दिए जानेवाले frame को resize नहीं किया जा सकता है |

scrolling

Yes

no

Frame की Scroll को Enable और desable करने के लिए इसका यूज़ किया जाता है l

name

text

Frame का नाम specify करने के लिए इसका यूज़ किया जाता है l

src

url

Frame में डॉक्यूमेंट का url specify करने के लिए इसका यूज़ होता है l

 

 

 

 

 

Syntax:

<head>

</head>

<frameset>

<frame>

</frameset>

</html>

 

HTML Frames Example

Save File left.html

<html>

<body>

<h1>Left</h1>

</body>

</html>

 

Save File center.html

<html>

<body>

<h1>Center</h1>

</body>

</html>

 

Save File right.html

<html>

<body>

<h1>Right</h1>

</body>

</html>

 

Save file Frame.html

<html>

<head></head>

<frameset cols = "500,600,700" border="5">

<frame name = "left" src = "left.html” scrolling=”yes”/>

<frame name = "center" src = "center.html" />

<frame name = "right" src = "right.html" />

</frameset>

<frameset rows = "500,600,700" border="5">

<frame name = "left" src = "left.html"  frameborder=”0” marginheight=”0” noresize=”noresize”/>

<frame name = "center" src = "center.html" marginwidth=”0” />

<frame name = "right" src = "right.html" />

</frameset>

 

</html>