CSS Quizs Question & Answers – Border Elements

Q1. 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

Show Answer Answer:-C. border-right
Explanation Syntax: border-right-style: dashed | dotted | double

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

Show Answer Answer:-D. border-top-color
Explanation Syntax: border-top-color: color | transparent | inherit

Q 3. 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

Show Answer Answer:-A. border-width
Explanation Syntax: border-width: width

Q 4. 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

Show Answer Answer:-A. border-style
Explanation Syntax:border-style: style

Q 5. 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

Show Answer Answer:-D. none of the mentioned
Explanation Syntax: border-top: border-width border-style border-color;

Q 6. 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

Show Answer Answer:-B. bottom
Explanation Syntax: bottom: length | percentage | auto | inherit

Q 7. 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

Show Answer Answer:-A. clear

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

Show Answer Answer:-A. border-bottom
Explanation Syntax: border-bottom: border-width border-style border-color;

Q 9. 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

Show Answer Answer:-C. border-bottom-width
Explanation Syntax: border-bottom-width: non-negative length | medium | thick | thin | inherit

Q 10. 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

Show Answer Answer:-C. border-collapse

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

You cannot copy content of this page