1.

Which attribute defines numbers of columns in a group?(a) width=multi-length[CN].(b) span=number[CN].(c) scope=scope-name[CN].(d) headers=idrefs[CS].This question was posed to me during an interview.My question is taken from Working with Tables topic in chapter HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Right choice is (b) span=NUMBER[CN].

For explanation I would say: 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.



Discussion

No Comment Found

Related InterviewSolutions