
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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>
Advertisements