CSS Multiple Choice Questions & Answers on Border Elements for Freshers

1. Which of the following property defines in a shorthand form the width, style, and color for the bottom border of an element?

a) border-bottom
b) border-bottom-color
c) border-bottom-all
d) none of the mentioned
Answer: a

Explanation:
Syntax: border-bottom: border-width border-style border-color;
2. Which of the following property sets the width of an element’s bottom border?

a) border
b) border-collapse
c) border-bottom-width
d) none of the mentioned
Answer: c

Explanation:
Syntax: border-bottom-width: non-negative length | medium | thick | thin | inherit
3. Which of the following property defines whether table cell borders are connected or separate?

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

Explanation:
Syntax: border-collapse: collapse | separate | inherit
4. Which of the following property defines the style for the right border of an element?

a) border-spacing
b) border-spacing
c) border-right
d) border-right-style
Answer: c

Explanation:
Syntax: border-right-style: dashed | dotted | double
5. Which of the following property defines the color of an element’s top border?

a) border-color
b) border-top
c) border-top-color-webkit
d) border-top-color
Answer: d

Explanation:
Syntax: border-top-color: color | transparent | inherit
6. Which of the following property sets the width of an element’s complete border?

a) border-width
b) width
c) border-depth
d) none of the mentioned
Answer: a

Explanation:
Syntax: border-width: width
7. Which of the following property defines the visual style of up to four different sides of a border?

a) border-style
b) border
c) border-top
d) none of the mentioned
Answer: a

Explanation: Syntax:
border-style: style
8. Which of the following defines in a shorthand form the width, style, and color for the top border of an element?

a) border-up
b) border-bottom
c) border-style
d) none of the mentioned
Answer: d

Explanation:
Syntax: border-top: border-width border-style border-color;
9. Which of the following property defines the y (vertical) coordinate for a positioned element, relative to the bottom of the enclosing object or browser window?

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

Explanation:
Syntax: bottom: length | percentage | auto | inherit
10. Which of the following property specifies the placement of an element in relation to floating objects?

a) clear
b) color
c) space
d) none of the mentioned
Answer: a

Explanation:
Syntax: clear: both | left | none | right

Related

Java Multiple Choice Questions & Answers on Constructors & Garbage Collection for Freshers

1. What is the return type of Constructors? a) intb) floatc) voidd) None of the mentioned Answer: d Explanation: Constructors does not have any return type, not even void. 2. Which keyword is us...

Oracle Database Multiple Choice Questions and Answers on Data Entry, Query and Reporting for Freshers

1. A BI reporting system does not _____________ a) Create meaningful informationb) Deliver information to users on a timely basisc) Use statistical procedures to predict future eventsd) Use dispara...

HTML Multiple Choice Questions & Answers on HTML and XHTML Element Reference for Freshers

1. Which attribute specifies a unique alphanumeric identifier to be associated with an element? a) classb) idc) articled) html Answer: b Explanation: The id attribute is most used to point to a s...

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