
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
How do we create a sub window in HTML?
Use the <frame> tag to create a sub window. The HTML <frame> tag is used to specify each frame within a frameset tag.
Note − This tag is not supported in HTML5. Do not use.
The following are the attributes −
Attribute | Value | Description |
---|---|---|
Frameborder | 0 or 1 | Specifies whether or not to display border around the frame. |
Marginheight | pixels | Allows you to specify the width of the space between the left and right of the frame's borders and the frame's content. The value is given in pixels. For example marginwidth = "10". |
Marginwidth | pixels | Specifies the margin, in pixels, between the frame's contents and it's left and right margins. |
Name | frame name | Name of the frame. |
Noresize | noresize | When set to noresize the user cannot resize the frame |
Scrolling | yes no auto | Determines scrollbar action. |
Src | URL | Location of the frame contents file. |
Example
You can try to run the following code to create a sub window −
<!DOCTYPE html> <html> <head> <title>HTML frame Tag</title> </head> <frameset cols = "200, *"> <frame src = "/html/menu.htm" name = "menu_page" /> <frame src = "/html/main.htm" name = "main_page" /> <noframes> <body> Your browser does not support frames. </body> </noframes> </frameset> </html>
- Related Articles
- How do we include an inline sub window in HTML?
- How do we create underlined text in HTML?
- How do we create preformatted text in HTML?
- How do we create an image map in HTML?
- How do I create a popup window in Tkinter?
- How do I create a popup window using Tkinter?
- How can we create a JPopupMenu with a sub menu in Java?
- How do we create the title of the text track in HTML?
- How do I create a popup window using Tkinter Program?
- How do we display a script in HTML?
- How do we create a structure in C#?
- How do we include a table caption in HTML?
- How do we add a definition term in HTML?
- How do we add a menu list in HTML?
- How do we display a table cell in HTML

Advertisements