Which attribute in HTML table tag defines the number of columns in a column…

2021

Which attribute in HTML table tag defines the number of columns in a column group?

  1. A.

    border

  2. B.

    colspan

  3. C.

    rowspan

  4. D.

    span

Attempted by 144 students.

Show answer & explanation

Correct answer: D

The attribute used to define the number of columns in a column group is span.This attribute is used within the <colgroup> or <col> tags to apply styles or structural rules to multiple columns simultaneously without repeating the code for every individual cell.

Explore the full course: Up Lt Grade Assistant Teacher 2025