Computer Applications
Write the difference between the colspan and rowspan attributes of an HTML table and give one example of each.
HTML Advanced Features
5 Likes
Answer
Differences between Colspan and Rowspan attributes of a table are:
| S. No. | Colspan | Rowspan |
|---|---|---|
| 1. | COLSPAN is used to combine the cells horizontally. It specifies the number of columns that the cells span across and shows them as a single cell. | ROWSPAN is used to combine the cells vertically. It merges the number of cells vertically and displays them as a single cell. |
| 2. | E.g. <TD Colspan = "4"> where 4 is the number of columns that the cells span across. | E.g. <TD Rowspan = "3"> where 3 is the number of rows that the cells span across. |
Answered By
3 Likes
Related Questions
"Privacy is defined as the right to control what happens with your personal information". Mention two ways to limit your data exposure online.
"Radio buttons let a user select one of a limited number of choices". Give an example showing the use of a radio button in HTML forms.
Giving examples, write the difference between a text box and a drop-down list.
"CSS comprises of style rules that are interpreted by the browser and then applied to the corresponding elements in your document." Illustrate the use of Property and Value style rules in CSS.