Which of the following HTML code will affect the vertical alignment of the table content ?
<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.
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 :
In XML, DOCTYPE declaration specifies to include a reference to __________ file.
In XML we can specify the frequency of an element by using the symbols :
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.
Match List - I with List - II.
| List - I | List - 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 :
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:
Which of the following statements is not correct ?
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.
How many different levels of heading does HTML support?
_______ specifies the HTML Element that you want to style.
The web uses the _________ to request and serve web pages and programs.
Which tag is used to enclose any number of javascript statements in HTML document?