Placement papers on HTML - Set 4

Placement papers on HTML - Set 4


1. Which of the following shows the basic tag structure of an HTML document?

< html>< head>< body>< /body>< /html>
< html>< body>< /body>< /html>
< html>< head>< /head>< body>< /body>< /html>
< html>< head>< /head>< /html>
View Answer / Hide Answer

ANSWER: < html>< head>< /head>< body>< /body>< /html>




2. 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?

< textarea rows="8" cols="20"> Your Comments.... < /textarea>
< textarea row="8" col="20"> Your Comments.... < /textarea>
< textarea rowcount="8" colcount="20"> Your Comments.... < /textarea>
< input type="text" maxlength="100"/>
View Answer / Hide Answer

ANSWER: < input type="text" maxlength="100"/>




3. What is meant by the cellspacing attribute?

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
View Answer / Hide Answer

ANSWER: It specifies the space between two cells.




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

col
colgroup
rowspan
row
View Answer / Hide Answer

ANSWER: colgroup




5. A few lines in an HTML paragraph are to be formatted differently from the rest of the lines. Which tag will assist in this?

div
p
span
format
View Answer / Hide Answer

ANSWER: p




6. Which of the following is correct regarding the frame attribute in the <table> tag?

It is used to add a frame to the table
A hsides value for the frame attribute will show the border lines for horizontal sides only.
A hsides value for the frame attribute will not show the border lines for horizontal sides only.
A hsides value for the frame attribute will add a scrollable frame on the horizontal sides.
View Answer / Hide Answer

ANSWER: A hsides value for the frame attribute will show the border lines for horizontal sides only.




7. 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.
View Answer / Hide Answer

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




8. 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?

td
p
/s
pre
View Answer / Hide Answer

ANSWER: pre




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

height
alt
src
all of the above
View Answer / Hide Answer

ANSWER: all of the above




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

name
size
multiple
all of the above
View Answer / Hide Answer

ANSWER: all of the above


Post your comment

    Discussion

  • RE: Placement papers on HTML - Set 4 -puneet (01/01/15)
  • very helpfull
  • RE: Placement papers on HTML - Set 4 -puneet (01/01/15)
  • very helpfull
  • RE: Placement papers on HTML - Set 4 -puneet (01/01/15)
  • very helpfull