Home » HTML » HTML Tables » Question
  1. Which attribute defines numbers of columns in a group?
    1. scope=scope-name[CN].
    2. width=multi-length[CN].
    3. headers=idrefs[CS].
    4. span=number[CN].
    5. None of these
Correct Option: D

span=number[CN] attribute’s value must be an integer and greater than 0. It specifies the number of columns in a group. When span attribute is not in use, colgroup defines a single column group containing one column. width=multi-length[CN] specifies default width of for every column. scope=scope-name[CN] specifies set of data cells for which going header cell gives header information. The headers=idrefs[CN] provides list of header cells that gives header information.



Your comments will be displayed only after manual approval.