HTML and XML

Last Updated :
Discuss
Comments

Question 1

HTML(Hypertext Markup Language) has language elements which permit certain actions other than describing the structure of the web document. Which one of the following actions is NOT supported by pure HTML (without any server or client side scripting)pages?

  • Embed web objects from different sites into the same page

  • Refresh the page automatically after a specified interval

  • Automatically redirect to another page upon download

  • Display the client time as part of the page

Question 2

Consider the HTML table definition given below:







< table border=1>
<tr>
<td rowspan=2> ab </td>
<td colspan=2> cd </td>
</tr>
<tr>
<td> ef </td>
<td rowspan=2> gh </td>
</tr>
<tr> <td colspan=2> ik </td>
</tr>
</table>

The number of rows in each column and the number of columns in each row are:

  • (2, 2, 3) and (2, 3, 2)

  • (2, 2, 3) and (2, 2, 3)

  • (2, 3, 2) and (2, 3, 2)

  • (2, 3, 2) and (2, 2, 3)

Question 3

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

  • (1)
  • (2)
  • (3)
  • (4)

Question 4

The definitions in an XML document are said to be __________ when the tagging system and definitions in the DTD are all in compliance.

  • well-formed

  • reasonable

  • valid

  • logical

Question 5

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.
  • only I and II are false.
  • only III and IV are false.
  • only I and III are false.
  • All are incorrect.

Question 6

Which of the following is TRUE only for XML but NOT HTML?

  • It is derived from SGML

  • It describes content and layout

  • It allows user defined tags

  • It is restricted only to be used with web browsers

Question 7

To add a background color for all h1 elements, which of the following HTML syntax is used

  • h1 { background-color :#FFFFFF}

  • { background-color :#FFFFFF} . h1

  • h1 { background-color :#FFFFFF} . h1(all)

  • h1. all{bgcolor= #FFFFFF}

Question 8

To declare the version of XML, the correct syntax is

  • <xml version=\'1.0\'/>

  • <*xml version=\'1.0\'/>

  • <*xml version==\'1.0\'/>

  • <*xml version=\'1.0\'/

Question 9

Which of the following tag in HTML is used to surround information, such as signature of the person who created the page ?
  • /

    /g, ">"

  • <address> </address>

Question 10

Which of the following statements is not correct?
  • HTML is not screen precise formatting language.
  • HTML does not specify a logic.
  • DHTML is used for developing highly interactive web pages.
  • HTML is a programming language.

There are 33 questions to complete.

Take a part in the ongoing discussion