ExamVeda
Login
Home
1
Which of the following elements are block and inline elements, respectively, that have no particular rendering?
Discuss
Answer & Solution
Answer: Option D
Solution:
The div element and span element are block and inline elements, respectively, that have no particular rendering. You might call them generic tags. Because these tags don’t have any predefined meaning or rendering, they are very useful for arbitrary style duties.
2
The _____________ property specifies the background color of an element.
Discuss
Answer & Solution
Answer: Option A
Solution:
Example:

body {
      background-image: url("img_tree.png");
      background-repeat: no-repeat;
     }
3
The ___________ property specifies if/how an element is displayed.
Discuss
Answer & Solution
Answer: Option D
Solution:
Example:

h1.hidden {
      display: none;
     }
4
The _____________ property allows us to include the padding and border in an element’s total width and height.
Discuss
Answer & Solution
Answer: Option B
Solution:
Example:

.div1{
      box-sizing: border-box;
     }
5
____________ property sets the coordinates of the clipping shape that exposes or hides the content of absolutely positioned elements
Discuss
Answer & Solution
Answer: Option B
Solution:
clip: rect(coordinates) | auto | inherit
6
_____________ property defines the space between cells in a table.
Discuss
Answer & Solution
Answer: Option B
Solution:
border-spacing: non-negative length(s) | inherit
7
____________ property defines whether table cell borders are connected or separate.
Discuss
Answer & Solution
Answer: Option D
Solution:
border-collapse roperty defines whether table cell borders are connected or separate.
8
______________ property sets the background image to scroll or not to scroll with its associated element’s content
Discuss
Answer & Solution
Answer: Option C
Solution:
Example:
background-attachment: scroll | fixed | inherit
9
____________ property associates a background image with an element.
Discuss
Answer & Solution
Answer: Option B
Solution:
Example:
background-image: url(image-file) | none | inherit
10
_____________ property defines whether table cell borders are connected or separate.
Discuss
Answer & Solution
Answer: Option C
Solution:
Example:
border-collapse: collapse | separate | inherit