All Exams Test series for 1 year @ ₹349 only
Question

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

This question was previously asked in
UGC NET 2016 Paper 3 Computer Science and Applications Question Paper (10-Jul-2016)
The correct answer is

<td style = “vertical-align : middle”> Text Here </td>

Vertical alignment of the content of a table cell is controlled by the CSS property vertical-align (or the old valign attribute), while horizontal alignment is controlled by text-align (or the old align attribute).

Step 1 — The inline style vertical-align : middle is a valid CSS declaration for a td element, so it centres the cell content vertically.

Step 2 — The valign attribute accepts only top, middle, bottom or baseline; the value centre is not valid, so the browser ignores it and the vertical alignment does not change.

Step 3 — text-align : center and align = middle act on the horizontal direction only (and middle is not even a valid value for align), so neither affects vertical alignment.

<td style = “vertical-align : middle”> Text Here </td> option is correct.

Was this answer helpful?

Similar Questions

  1. Linking to another place in the same or another webpage require two A (Anchor) tags, the first with the ________ attribute and the second with the _________ attribute.

  2. Which of the following statements are true with reference to the way of describing XML data ?

    (a) XML uses DTD to describe the data

    (b) XML uses XSL to describe the data

    (c) XML uses a description node to describe the data

    Codes :

  3. What can you say about the following statements ?

    I. XML tags are case-insensitive.

    II. In JavaScript, identifier names are case-sensitive.

    III. Cascading Style Sheets (CSS) cannot be used with XML.

    IV. All well-formed XML documents must contain a document type definition.

  4. In XML we can specify the frequency of an element by using the symbols :

  5. In XML, DOCTYPE declaration specifies to include a reference to __________ file.

  6. Which of the following statements is not correct ?

  7. Suppose that a corporate website appearance varies according to the department that owns various documents. All the documents need to follow the corporate look and feel. The HR department does not need a separate style sheet. It needs only the sheet containing the difference from the corporate sheet.

    Which of the following statements justify the above scenario?

    A. The styles sheets cannot stack on each other

    B. The style sheets can stack on each other

    C. The style sheets can override each other

    D. The style sheets cannot override each other

    Choose the most appropriate answer from the options given below:

  8. Match List - I with List - II.

    List - IList - II
    (A) HTML(I) Allow for dynamic and interactive web pages.
    (B) DHTML(II) Defines the structure of web pages.
    (C) XML(III) Object-oriented programming language for web applications.
    (D) JAVA(IV) Used for data storage and transport.

    Choose the correct answer from the options given below :


Important Questions from HTML

  1. In the HTML (Web Page Designing Language), what is the letter 'H' referred to ?
  2. How many different levels of heading does HTML support?

  3. _______ specifies the HTML Element that you want to style.

  4. The web uses the _________ to request and serve web pages and programs.

  5. Which of the following is NOT a pair tag in HTML?

Need Expert Advice?
Upcoming Exams
CTET
December 12, 2026
WB SET
December 13, 2026
CBSE UGC NET
December 14, 2026
CSIR UGC NET
December 19, 2026
Test Series
UGC NET img
Teaching
UGC NET (Paper 2) December 2026 Mock Test Series
799 Tests 2 Tests Free
300 Attempts
4.4(45)
English, Hindi
More Questions from UGC NET

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App