Odesk HTML Test 4.01
01. Question: Which of the following statements is correct for a blockquote?
Answer: It defines the start of a long quote.
02. Question: Which of the following is incorrect about the relation between HTML and XHTML?
Answer: XHTML is almost identical to HTML 4.01.
03. Question: Choose the incorrect statement(s):
Answer: HTML is case sensitive.
04. Question: Which of the following tags can be used in place of a button tag?
Answer: input
06. Question: Which of the following is not a valid input type of the form tag?
Answer: All are valid
07. Question: 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:
Answer: default
08. Question: Which of the following is/are a valid value for the type attribute of the input tag?
Answer: text , c. reset , d. password
09. Question: Which of the following is not correct for an action attribute for a form tag?
Answer: None of the above
10. Question: What do you infer from the following code? <a href = "http://www.expertrating.com"> Expert Rating
Answer: This href is using absolute path for linking.
11. Question: Which of the following statements is correct for the tag?
Answer: The text under block quote must be enclosed in a block level element in a strict DTD
12. Question: Which of the following is/are not true for a paragraph tag in HTML 4.01?
Answer:It cannot be used within a <td> tag.
d. It creates an empty line after its ending line.
d. It creates an empty line after its ending line.
13. Question: 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?
Answer: pre
14. Question: 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 for formatting the various <td> table cells?
Answer: External style sheet
15. Question: Which of the following attributes is/are related to the <img> tag?
Answer: All of the above
16. Question: The following link is placed on an HTML webpage.
<a href="http://msdn.com/" target="_blank"> MSDN </a>
What do you infer from it?
<a href="http://msdn.com/" target="_blank"> MSDN </a>
What do you infer from it?
Answer: It will open the site msdn.com in a new window.
17. Question: 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>
<ul><li><ol><li>A</li><li>B</li><ul><li>Item1</li><li>Item 2</li></ul><li>C</li></ol></li></ul>
Answer: Perfectly valid.
18. Question: Which of the following values for the scrolling attribute for the frame tag is not valid?
Answer: no
19. Question: Which of the following is/are not correct for a <meta> tag in HTML 4.01?
Answer: It is mandatory to specify its name or scheme attributes.
20. Question: The tag that is used to pass the parameters to an applet is:
Answer: Param
21. Question: Which of the following attributes is/are valid for a select tag contained within a form tag?
Answer: d. All of the above
22. Question: 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?
<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?
Answer: 90
23. Question: 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?
Answer: optgroup
24. Question: Which of the following shows the basic tag structure of an HTML document?
Answer: <html><head></head><body></body></html>
25. Question: 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?
Answer: <input type="text" maxlength="100"/>
26. Question: 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?
Answer:coords="150,190,150,110"
27. Question: What is meant by the cellspacing attribute?
Answer: It specifies the space between two cells
28. Question: Which of the following attributes comes in handy when borders have to be put between groups of columns instead of every column?
Answer: colgroup
29. Question: A few lines in an HTML paragraph are to be formatted differently from the rest of the lines. Which tag will assist in this?
Answer: p
30. Question: How will you specify a comment in an HTML document?
Answer: <!-- Here is a comment.. -->
31. Question: Which of the following is correct regarding the frame attribute in the <table> tag?
Answer: A hsides value for the frame attribute will show the border lines for horizontal sides only.
32. Question: What is meant by cellpadding?
Answer: It specifies the space between the cell wall and the contents of the cell.
33. Question: A developer wrote this image tag:
<img src ="states.gif" width ="330" height ="406" alt="States"usemap ="#statemap"/>What code should follow this?
Answer: map id ="statemap" name="statemap"> <img area shape ="rect" coords ="0,0,82,126" href="state1.htm"alt="State1" /> </map>
34. Question: Which of the following values is/are valid for the align attribute of a tag?
Answer: left, b. right, c. center
35. Question: 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?
Answer: <tr> <th>Customer Name</th> <th cellpadding=3>Contact</th> </tr>
36. Question: What would you infer from the following code in an HTML 4.01 Web site? <body topmargin=2 leftmargin=2>
Answer: The top margin and left margin of the webpage is 2 pixels.
37. Question: You specified a base tag and anchors as follows:
1. <base target="_blank">2. <a href="http://www.yahoo.com">Yahoo</a>
3. <a href="http://www.google.com" target="_top">Google</a>
Which of the following is true for the above code?
Answer: Both links will open in a new window.
38. Question: 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?
Answer: <a href="#target4">Check Old Listing as well</a>
39. Question: Which attribute specifies the submit URL in a form tag?
Answer: action
40. Question: The tag which is used to show monospaced text is:
Answer: <th>