1. Home
  2. Computer Science MCQs
  3. HTML
  4. Which attribute makes a table cell span across three…

Added 2 Nov 2026

Which attribute makes a table cell span across three columns?

  1. cols="3"
  2. colspan="3" Correct answer
  3. span="3"
  4. rowspan="3"

Correct answer

B. colspan="3"

18 views

MCQSEXAM

Explanation

colspan merges cells horizontally, and rowspan merges them vertically. Both are set on

or elements.

Reference

Asked in: NTS, Web Developer Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More HTML MCQs

Practise all HTML MCQs

Similar MCQs