Friday, March 7, 2014

Odesk Test Answers HTML 4.01

Which of the following tags can be used in place of a button tag?
c. input

Which of the following is not a valid input type of the form tag?
e. All are valid

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:

Which of the following is/are a valid value for the type attribute of the input tag?
a. text
c. reset
d. password

Which of the following is not correct for an action attribute for a form tag?
d. None of the above

Which of the following values is/are valid for the align attribute of a tag?

The following link is placed on an HTML webpage.
<a href="" target="_blank"> MSDN </a>
What do you infer from it?
b. It will open the site in a new window.

Is the following code valid in HTML 4.01 Strict?
<ul><li><ol><li>A</li><li>B</li><ul><li>Item1</li><li>Item 2</li></ul><li>C</li></ol></li></ul>
a. Perfectly valid.

Which of the following values for the scrolling attribute for the frame tag is not valid?
d. no

Which of the following set of coordinate values refers to an image defined by the area tag with the value of poly for its shape attribute?

What is meant by the cellspacing attribute?
c. It specifies the space between two cells.

Which of the following attributes comes in handy when borders have to be put between groups of columns instead of every column?
b. colgroup

A few lines in an HTML paragraph are to be formatted differently from the rest of the lines. Which tag will assist in this?
b. p
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?
b. <tr>
<th>Customer Name</th>
<th cellpadding=3>Contact</th>

What would you infer from the following code in an HTML 4.01 Web site? <body topmargin=2 leftmargin=2>
a. The top margin and left margin of the webpage is 2 pixels.

You specified a base tag and anchors as follows:
1. <base target="_blank">
2. <a href="">Yahoo</a>
3. <a href="" target="_top">Google</a>
Which of the following is true for the above code?
c. Both links will open in a new window.

On one of your Web pages named Listing.html, you specified a target like this:
<a name="target4">Old Listing</a>
How will you make a link to the above target?
b. <a href="#target4">Check Old Listing as well</a>

Which attribute specifies the submit URL in a form tag?
b. action

How will you specify a comment in an HTML document
c. <!-- Here is a comment.. -->

Which of the following is correct regarding the frame attribute in the <table> tag?
b. A hsides value for the frame attribute will show the border lines for horizontal sides only.

What is meant by cellpadding?
b. It specifies the space between the cell wall and the contents of the cell.

For the following items of a <select> list:
<option value="89">Item 1</option>
<option value="90">Item 2</option>
Which of the following values would be passed on by clicking the submit button on selecting Item 2 from the list?
b. 90

You have to add a list of products in a drop-down list. What will you use to group the identical products under a category name?
a. optgroup

Which of the following shows the basic tag structure of an HTML document?
c. <html><head></head><body></body></html>

Within a table cell <td>:
e. All the above tags could be used.

A developer wrote this image tag:
<img src ="states.gif" width ="330" height ="406" alt="States"
usemap ="#statemap" />
What code should follow this?
a. <map id ="statemap" name="statemap">
<area shape ="rect" coords ="0,0,82,126" href="state1.htm"
alt="State1" />

The tag which is used to show monospaced text is:
b. <th>

The tag that is used to pass the parameters to anapplet is:
c. param

Which of the following attributes is/are valid for a select tag contained within a form tag?
d. All of the above

You want to provide a form field to the users for writing lengthy comments on the quality of the services provided by you. Which of the following tags will you use?
d. <input type="text" maxlength="100"/>

You are creating several web pages for a website that contain several rather large data tables, many of which are somewhat similar in the number of columns, rows, and in other common table formatting. In addition, CSS will be employed for formatting the tables. Which one of the following types of CSS has the highest priority over the others and typically requires the greatest total amount of code space for the entire website forformatting the various <td> table cells?
a.External style sheet

Which of the following attributes is/are related to the <img> tag?
d. All of the above

Which of the following is/are not correct for a <meta> tag in HTML 4.01?
d. It is mandatory to specify its name or scheme attributes.

Which of the following statements is correct for a blockquote?
b. It defines the start of a long quote.

Which of the following is incorrect about the relation between HTML and XHTML?
b. XHTML is almost identical to HTML 4.01.

Which of the following statements is correct for the tag?
d. It places an empty line after the text.

Which of the following is/are not true for a paragraph tag in HTML 4.01?
b. It creates an empty line above its starting line.
c. It cannot be used within a <td> tag.

A piece of text contains many blank spaces within it. Which of the following tags would be suitable to display the text as it was originally formatted?
d. pre

Choose the incorrect statement(s):
b. HTML is case sensitive.

No comments:

Post a Comment