HTML Frame Tag is a website organising tool of HTML. It is used to divide your browser window in various segments for multiple purposes. Here every segment can load separate HTML document. Each segment can work autonomously or alongwith other segments/frames.
There is one more important term i.e. A Frameset which is a collection of all the frames in a browser window. Browser's screen can be splitted into frames using <frameset> tag.
Syntax
This will produce following result
The below table contains Frame Attributes and their description which is supported by HTML version.
Attribute Name | Attribute Value | Attribute Description |
---|---|---|
src | URL | refers to the url of the document to be loaded into the frame |
marginwidth | pixels | refers to space to be left along the sides of the frame |
marginheight | pixels | refers to space to be left at the top and bottom sides of the frame |
name | text | refers to a unique name for the frame |
noresize | pixels | refers to disabling the resizing of the frame |
scrolling | pixels | refers to to decide whether to have scrollbarsin a frame |
longdesc | URL | refers to to decide whether to have scrollbarsin a frame |
frameborder | pixels | refers to URL to the document containing long description of the frame |