Cell Spanning

Duration: 6 min

This video lesson is available to enrolled students.

Enroll to watch — UPPSC Polytechnic Lecturer 2025 (CS)

AI summary & chapters

AI Summary

An AI-generated summary of this video lecture.

This lecture introduces cell spanning in HTML tables, focusing on the colspan and rowspan attributes. The instructor defines colspan as column spanning and rowspan as row spanning, showing syntax such as <th colspan="2">Student Details</th> and <td rowspan="2">Amit</td>. Hand-drawn diagrams illustrate how a single cell occupies multiple grid spaces. The lesson then moves to practical examples: an “Example of Colspan” slide pairs HTML source with a rendered table where the Name header spans two columns beside an Age column, using rows like Divya/Jain/33 and Namita/Joshi/27. A later “Example of Rowspan” slide shows a Phone header spanning two rows beside phone numbers 9755233189 and 9424564781. Red arrows, underlines, circles, and numbered annotations connect code attributes to their rendered table cells.

Chapters

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

    The video introduces cell spanning in HTML tables, explaining that a single cell can extend across multiple rows or columns. The instructor defines the two main types: Colspan for column spanning and Rowspan for row spanning, with on-screen text showing “Cell Spanning in HTML Tables,” “Colspan (Column Spanning),” and “Rowspan (Row Spanning). Syntax examples appear, including <th colspan="2">Student Details</th> and <td rowspan="2">Amit</td>. Diagrams visually represent how a cell occupies multiple grid spaces, and the instructor begins annotating an example table with Name, FN, and LN to illustrate layout.

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

    The lecture continues with the “Example of Colspan” slide, pairing an HTML code panel on the left with a rendered table on the right. The code includes <th colspan="2">Name</th> and <th>Age</th>, while the rendered table shows a Name header spanning two columns beside an Age column. Table rows read “Divya / Jain / 33” and “Namita / Joshi / 27,” with the table tag set to border="1" width="400" height="100." Red handwritten arrows point from the colspan="2" attribute to the wide Name header cell, and column numbers 1, 2, 3 are written above the table to clarify spanning.

  3. 5:00 6:22 05:00-06:22

    The final section shifts to the “Example of Rowspan” slide, showing source code with <th rowspan="2">Phone</th> and a rendered table where the Phone cell stretches across two rows beside numbers 9755233189 and 9424564781. Red circled numbers 1, 2, and 3 with curved arrows annotate the rows, tracing <th>Name</th>, the rowspan header, and each phone number to its corresponding on-screen cell. This demonstrates how rowspan merges cells vertically across multiple rows.

The lecture progresses from conceptual definitions to practical code examples. It first establishes that cell spanning allows a table cell to cover multiple grid positions, distinguishing colspan (horizontal) from rowspan (vertical). The instructor uses syntax examples and hand-drawn diagrams to make the abstract concept concrete. The practical sections then show side-by-side HTML source and rendered output, using red arrows and numbered annotations to connect specific attributes like colspan="2" and rowspan="2" to their visual effects in the table. This approach helps students understand both the syntax and the resulting layout behavior.

Loading lesson…