CSS Multiple Choice Questions & Answers on Styling Tables for Freshers

1. Which of the following element is used within the table element to define a caption?
a) 
b) <caption>
c) 
d) 

Answer: b
 

2. Which of the following property is used to specify table borders in CSS?

a) table
b) border
c) table:border
d) none of the mentioned
Answer: b

Explanation:
Example: table{border: 7px solid black;}
3. Which of the following property sets whether the table borders are collapsed into a single border or separated:?

a) border
b) border-collapse
c) collapse
d) table-border
Answer: b

Explanation:
Example: table{ border-collapse: collapse;}
4. Which of the following property is used to change the width of table?

a) width
b) table
c) table-width
d) resize
Answer: a

Explanation:
Example: table{width: 23px;}
5. Which of the following property sets the vertical alignment?

a) align
b) vertical
c) vertical-align
d) vertical-alignment
Answer: b

Explanation:
Example: table{vertical-align: top;}
6. Which of the following property is used to control the space between the border and content in a table?

a) border
b) margin
c) padding
d) resize
Answer: c

Explanation:
Example: table{border: 4px solid black;}
7. Which of the following property is used to change the background in a table?

a) table-background
b) background
c) color
d) none of the mentioned
Answer: b
8. Which of the following property is used to change the height of a table?

a) height
b) table-height
c) resize
d) position-y
Answer: a

Explanation:
Example: table{height: 45%;}
9. Which of the following property is used to align the text in a table?

a) align
b) text
c) text-align
d) none of the mentioned
Answer: c

Explanation:
Example: table{text-align: left;}
10. Which of the following property is used to set order in a table?

a) border
b) padding
c) dotted
d) text
Answer: a

Explanation:
Example: table{border: 1px solid #000;}

Related

Multiple choice Questions and Answers on Applications in the Clouds of Cloud Computing for Freshers

1. The properties necessary to guarantee a reliable transaction in databases and other applications is referred to as: a) BASEb) ACIDc) ATOMd) All of the mentioned Answer: b Explanation: In compu...

Mutiple choice Questions and Answers on The Open Cloud Consortium of Cloud Computing for Freshers

1. Which of the following organization supports the development of standards for cloud computing? a) OPCb) OCPc) OCCd) All of the mentioned Answer: c Explanation: OCC is comprised of several univ...

Computer Fundamentals Multiple choice Questions and Answers on Processor & Its Types for Freshers

1. Computer has a built-in system clock that emits millions of regularly spaced electric pulses per _____ called clock cycles. a) secondb) millisecondc) microsecondd) minute Answer: a Explanation...

Post a Comment

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

item