FRAMES IN HTML ( How to create frames ? )
- Mahesh Bhat
- Jul 1, 2017
- 2 min read
FRAMES ALLOWS TO PROVIDES MULTIPLE VIEWS WITH PONE BROWSER WINDOWS EACH VIEW CAN CONTAIN ITS OWN UNIQUE html DOCUMENT IN THE MOST COMMAN USE FOR FRAMES IS TO GIVE USERS EACH WAY TO NAVIGATE AROUND ASITE .FRAMS ARE CUSTMIZABLE SO THAT THE USER CAN USE MOUSE TO RESIZE IT.

1. <FRAME>: Creates a frame used inside the element. ATTRIBUTES:
• Border colour: - sets the colour for the frame border.
• Frame border:- Sets whether or not borders surround the frame .in internet explorer, set to 1 (by default) and 0 (no border).
• Margin height: - Sets the size of the top and bottom margins used in the frame, sets to a pixel height.
• Margin width: - Sets the size of the right and left margins used in the frame.
• Name: - Sets the name of the frame .it can be used as the target destinations for other elements.
• Noresize: - Frame many not be resized.
• Scrolling: - Determines a scrollbar action. Possible vales: o Auto, yes (shows the scrollbar), no (never shows scrollbar)
• SRC: - specifies URL of the frame document.
2. <FRAMESET>:-
Structures a document using frames .replaces the<body> element and uses the rows and /or cols attributes to set up the frame. Ending tag is required.
ATTRIBUTES: • BORDER: - used to set the border for all frames with the frameset .set to positive integer indicating the pixel space between frames.
• BORDERCOLOR: - Sets the colour of the border for all the frames within the frames.
• FRAME BORDER: - set whether or not border surround the frames in the frameset.
• FRAME SPACING: - Sets the pixel spacing between frames.
• COLS: - sets the number of vertical columns in the frameset.seperate the values assigned to this attributes with commas. Each value represents the width of acolumn.set to pixel values, percentage or * to specify that the browser should give column or columns of remaining space.
• ROWS: - Sets the no of horizontal rows in the frameset. Separates the values assigned to this with commas. Each values represents the width of the row. Set to pixel value, % or * to specify that the browser should give row or rows of remaining space.
3. <Iframe>:
Creates in line or floating frame.
ATTRIBUTES: • ALIGN: - Specifies alignment of the Text. Set to left, top, bottom, right, middle.
• FRAME BORDER:- Sets whether or not border surrounds the frame
• HSPACE & VSPACE: - Sets horizontal & vertical spacing around the frame in pixel.
• HEIGHT:- sets the height of the frame
• WIDTH: - Sets the width of the frame.
• MARGIN HEIGHT, MARGIN WIDTH: - Sets the top and bottom margins and left and right margins inside the frame.
• NAME: - sets the name of the frame which can be referred as target destination.
• SCROLLING:- Determines a scrollbar action
• SRC: - specifies URL of the frame document
Comments