HTML 4.01 Test Answers 2012-2013



HTML 4.01 Test Answers 2012-2013

Question: 1
Which of the following font styling tag is not
valid?

a.
b.
c.
d.
e.

Answers is: c


Question: 2
Which form event is fired on the click of a button
using a button tag with its type attribute value equal to submit?

Onload
Onsubmit
Onunload
Onreset


Answers is: Onsubmit



Question: 3
Which of the following tags can be used in place of
a button tag?

Legend
Ol
Input
Dl

Answers is: Input


Question: 4
Which of the following is invalid value for the
shape attribute of an area tag?

Circle
Tri
Rect
Poly

Answers is: Tri



Question: 5
What is the character-entity representation of the
“less than” sign (<)? 60;# < &60#; #60&; Answers is: 60;# Question: 6 Which of the following statements is correct for the





tag?

The text under block quote must be enclosed in a block level element in a strict DTD document.
The Attribute named cite must be specified.
Closing the tag is optional.
It places an empty line after the text.

Answers is: The
attribute named cite must be specified.




Question: 7
A developer wrote this image tag:”States”
What code should follow this?






Answers is:

Question: 8
Which of the following is/are not valid?

Main Title

Main Title

Main Title

Main Tile

Answers is: Main
Title




Question: 9
Where must the styles specified for a CSS internal
style sheet be located?

Inside a table tag
Inside a div tag
Inside the head tag
anywhere on the webpage

Answers is: Anywhere on the webpage


Question: 10
What is meant by cellpadding?

It makes the cell span more than one column.
It specifies the space between the cell wall and the contents of the cell.
It specifies the space between two cells.
It makes the cell span more than one row.

Answers
is: It specifies the space between the cell wall
and the contents of the cell.



Question: 11
Which of the following is true for the
tag?

The attribute named cols specifies the number of columns in colgroup.
It is useful for applying similar formatting to the grouped columns.
It can be used anywhere between the body tags.
It can be inserted in a tag to include that cell to the group.

Answers is: It is useful for applying
similar formatting to the grouped columns.



Question: 12
Is the following code valid in HTML 4.01 Strict?
    1. A
    2. B
      • Item 1
      • Item 2
    3. C

Perfectly valid.
Invalid because you should not have three levels of nesting in the lists.
Invalid because you should not have an unordered list within an ordered list.
Invalid because you should not have an ordered list within an unordered list.
Invalid because a
    tag should not conflict with an
      tag at the same list level. Answers is: Perfectly valid. Question: 13 Which of the following is true for the tag in HTML 4.01? It does need a closing tag. The language attribute cannot be specified with it. The name and type attributes are optional. The class, id, and title attributes can be specified for it. Answers is: It does need a closing tag. Question: 14 Within a table cell :

      tags cannot be used.
        tags cannot be used.
        tags cannot be used.
        tags cannot be used.
        All the above tags could be used.

        Answers is: All the above tags could
        be used.


        Question: 15
        You want to display a
        table listing out customer names and their contact information. The heading of
        the table is shown in the figure. What is the code for creating the first line
        of the table heading?

        Customer NameContact





        Customer NameContact





        Customer NameContact





        Customer NameContact






        Answers is:
        Customer NameContact








        Question: 16
        It is not necessary
        to give the coordinates for an image or object defined within an area tag, if
        the value of its shape attribute is:

        Circle
        Poly
        Default
        Rect

        Answers is: Default



        Question: 17
        A
        defines the document type of any HTML document. It can be of three types:

        Strict, Transitional, or Frameset
        Strict, Transitional, or Loose
        Fixed, Intermediate, or Loose
        Fixed, Intermediate, or Frameset

        Answers is: Fixed, Intermediate, or
        Frameset


        Question: 18
        You are designing a
        website for one of your clients. You have to use an applet named cal.class to
        show a scrollable calendar. Which of the following is the recommended way of
        calling it if you are using HTML 4.01?






        Answers is:


        Question: 19
        How will you specify
        a comment in an HTML document?


        <-Here is a comment.. ->



        Answers is:


        Question: 20
        On one of your Web
        pages named Listing.html, you specified a target like this:
        Old Listing
        How will you make a
        link to the above target?

        Check Old Listing as well
        Check Old Listing as well
        Check Old Listing as well
        Check Old Listing as well

        Answers is: Check Old Listing as well



    No comments: