Web Programming (3160713) MCQs

MCQs of Basics of HTML andCSS

Showing 51 to 60 out of 73 Questions
51.
How do you change the left margin of an element?
(a) text-indent:
(b) margin:
(c) indent:
(d) margin-left:
Answer:

Option (d)

52.
To define the space between the element's border and content, you use the padding property, but are you allowed to use negative values?
(a) yes
(b) no
(c) may be
(d) not supported
Answer:

Option (a)

53.
How do you make a list that lists its items with squares?
(a) list-type: square
(b) type: 2
(c) type: square
(d) list-style-type: square
Answer:

Option (d)

54.
Which snippet of CSS is commonly used to center a website horizontally?
(a) Margin: auto 0;
(b) Margin: 0 auto;
(c) Margin: center;
(d) Site-Align: center;
Answer:

Option (a)

55.
What property is used to change the size of text?
(a) font-size
(b) text-size
(c) size
(d) font-weight
Answer:

Option (a)

56.
A declaration in css is terminated by a..
(a) . period
(b) ; semi colon
(c) ! exclamation mark
(d) : colon
Answer:

Option (b)

57.
You can change the look of the entire site at once when CSS is defined where?
(a) On your computer
(b) In the database
(c) In an external file
(d) With each block of text
Answer:

Option (c)

58.
The ____________ selector is used to specify a style for a single, unique element
(a) id
(b) class
(c) text
(d) bit
Answer:

Option (a)

59.
The ____________ property specifies which sides of an element other floating elements are not allowed.
(a) cleared
(b) clear
(c) float
(d) Both A and B above
Answer:

Option (b)

60.
The ___________ property specifies the stack order of an element
(a) d-index
(b) s-index
(c) x-index
(d) z-index
Answer:

Option (d)

Showing 51 to 60 out of 73 Questions