HTML Tables
- Borders can’t be applied on ________________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Borders can’t be applied on <tr> elements. It can’t be applied on table structural elements. For setting borders with <tr> element, border-collapse property should be set to collapse.
- border-spacing is given in _____________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
border-spacing and border-collapse are the two properties by which one can set the border and its styling in a table. We give its value in pixels.
- Headings of table lies inside ___________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Headings of the table lies inside <thead> element. Footer lies inside the <tfoot> element. The body of the table lies inside <tbody> element. <th> is used for giving heading to a row or a column. Every element must have closing tag also i.e. </thead>, </tfoot>, </tbody>
- Each cell of the table can be represented by using __________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
td stands for table data, we can represent each cell of the table by using <td>, at the end we used </td> tag. But some browsers by default draw the lines around table. <tr> is used to indicate start of every row i.e. it stands for table row. The header information is present in <th> tag. <thead> tag contains the group of header.
- For heading we can use ____________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
<th> element is used for representing heading of column or a row. It works same as <td> element. If shell has no content we can use <th> element also there. We can use scope attribute for specifying the heading is for row or column. Usually content of <th> is represented in bold. <thead> tag contains the group of header. <tr> is used to indicate start of every row i.e. it stands for table row.