HTML Frames

Duration: 8 min

This video lesson is available to enrolled students.

Enroll to watch — Bihar STET 2026 Paper II Computer Science

AI summary & chapters

AI Summary

An AI-generated summary of this video lecture.

The lecture introduces HTML Frames as a method for dividing a browser window into independent sections, each displaying its own HTML document. The instructor uses whiteboard diagrams and slides to explain the <frameset> and <frame> tags, their attributes (rows, cols, src, name, scrolling), and how they create two-row, two-column, three-row, and nested layouts. A live code example demonstrates how the rows attribute divides the window into percentages (e.g., 15%, 25%, 10%), with browser output annotated to map code to visual regions. The <frame> tag is defined as an empty tag with no closing tag, and its attributes are listed in a table. The <noframes> tag is introduced as fallback content for browsers that do not support frames, with a code example showing its syntax. The lesson concludes by reviewing multiple frame layout examples, emphasizing the structural relationship between framesets and frames.

Chapters

  1. 0:00 – 2:00 00:00-02:00

    The instructor introduces HTML Frames by drawing a vertical line and a box divided into three horizontal sections on the whiteboard, annotating it with circles and arrows to indicate frame regions. The slide defines a frame as 'a technique used to divide the browser window into multiple independent sections' and notes that frames were introduced in HTML 4.0/4.01, created using <frameset> and <frame> tags. Handwritten annotations circle 'frames' and add notes for 'Html 5' and 'css/js', connecting the concept to modern technologies. The slide transitions to an 'HTML Frame Layout Example' showing diagrams for two rows, two columns, and nested layouts, with code snippets like <frameset rows="30%,70%"> and <frame src="top.html"> displayed below the visual diagrams.

  2. 2:00 – 5:00 02:00-05:00

    The lecture details the <frameset> tag attributes in a table, specifying that 'rows: Divides window horizontally' and 'cols: Divides window vertically'. A code example using <frameset rows="15%, 25%, 10%"> is shown alongside browser output, with the instructor annotating the rendered window to show 15%, 25%, and 10% row divisions. The <frame> tag is then defined as an empty tag with no closing tag, and its attributes are listed in a table: src (URL of page to display), name (Name of frame), scrolling (Controls scrollbar), noresize (Prevent resizing), marginwidth (Left and right margin), marginheight, and frameborder. The instructor adds red checkmarks to the src attribute in both syntax and table, and draws arrows with numbered circles on the browser window to map code elements to visual layout regions such as header, content area, and footer frames.

  3. 5:00 – 7:55 05:00-07:55

    The <noframes> tag is explained as providing alternative content for browsers that do not support frames, with the on-screen text stating 'The <noframes> tag provides alternative content for browsers that do not support frames.' A code example demonstrates its usage within a frameset, showing the fallback message 'Your browser does not support frames.' The instructor adds red checkmarks and arrows to highlight the structure. The lesson transitions to an 'HTML Frame Layout Example' slide displaying five different frame layout diagrams: 1. Two Rows Layout, 2. Two Columns Layout, 3. Three Rows Layout, and 4. Nested Frameset Layout (Rows inside Columns). Arrows point to specific frames in the layout diagrams, reinforcing how nested framesets combine rows and columns to create complex page structures.

The lecture progresses from conceptual introduction to practical implementation. It begins with a whiteboard diagram illustrating how frames partition a webpage, then moves to formal definitions and tag syntax. The <frameset> tag is taught first, with its rows and cols attributes demonstrated through a live code example showing percentage-based divisions. The <frame> tag is then introduced as the individual container within a frameset, with its attributes systematically listed and mapped to browser output. The <noframes> tag provides a fallback mechanism for accessibility. Throughout, the instructor uses side-by-side code and browser output, handwritten annotations, and layout diagrams to connect abstract syntax to visual results. The central idea is that frames allow multiple independent HTML documents to be displayed in a single browser window, structured through nested framesets and frame elements. Minor details include specific attribute values (e.g., marginwidth, noresize) and the historical note that frames were introduced in HTML 4.0.

Loading lesson…