Question 67Asked in UGC NET Computer Science, June 2017 (Paper II & III, Selected Questions)

Which of the following HTML code will affect the vertical alignment of the table content?

  1. A<td style = "vertical-align : middle" > Text Here </td>
  2. B<td valign = "centre"> Text Here </td>
  3. C<td style = "text-align : center"> Text Here </td>
  4. D<td align = "middle" > Text Here </td>
Show answerHide answer

Correct answer: (B) <td valign = "centre"> Text Here </td>

Explanation

Vertical alignment of table contents is set by <td valign = 'top | middle | bottom | baseline'> Text here </td>. No option matches exactly; taking 'centre' as middle, option (b) matches.

From UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions)

This is question 67 of UGC NET Computer Science PYQ, June 2017 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.